ref: f07c0280e9dfd9119bda25c736f00018a498beea
parent: 6440e9bb365a29f2a7062f8bdf8dd3d5b8229cf1
author: Ori Bernstein <[email protected]>
date: Tue Sep 16 21:42:14 EDT 2014
Fix flipped sign for float32explode. Fixed the flipped sign in float64s, forgot to fix it for float32
--- a/libstd/floatbits.myr
+++ b/libstd/floatbits.myr
@@ -39,7 +39,7 @@
var bits, isneg, mant, exp
bits = float32bits(flt)
- isneg = (bits >> 31) == 0 /* msb is sign bit */
+ isneg = (bits >> 31) != 0 /* msb is sign bit */
exp = (bits >> 22) & 0xff /* exp is in bits [23..30] */
mant = bits & ((1 << 22) - 1) /* msb is in bits [0..22] */