Page 1 of 1

Bug in nDbl2Flt()

Posted: Thu Nov 22, 2007 3:13 pm
by Enrico Maria Giordano
This is the fixed line:

Code: Select all

ui = ( ( short * )( &d ) )[3] & 0xfff0;             // Get exponent
Note short type instead of int.

EMG

Posted: Thu Nov 22, 2007 7:03 pm
by Antonio Linares
Enrico,

Thanks! :-)