bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-GnuCOBOL] testsuite 583. MF FIGURATIVE to NUMERIC (run_misc.at:5918


From: Jim Rinn
Subject: [Bug-GnuCOBOL] testsuite 583. MF FIGURATIVE to NUMERIC (run_misc.at:5918): FAILED
Date: Thu, 3 Jan 2019 10:11:29 -0600

Test 583 fails the move all * and move all “21” to bigflt tests.

 

Could this be an endian issue with the expected value because the hex dump of the bigflt value vs the expected value is byte reversed.

 

Created a small C program to plug in the expected and actual values.

 

 

int main(void)

{

   union {

      float x;

      long  y;

   };

 

   printf("Size of x: %d  y: %d\n",sizeof(x), sizeof(y));

   y=0x7d7f54e5;

   printf("x: %e  %8x \n",x,y);

   y=0xe5547f7d;

   printf("x: %e  %8x \n",x,y);

 

   return 0;

}

 

Size of x: 4  y: 4

x: 2.121212e+37  7d7f54e5

x: -6.271834e+22  e5547f7d

Attachment: testsuite.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]