1 parent b1fa907 commit 2adf7ecCopy full SHA for 2adf7ec
1 file changed
py/mpz.c
@@ -711,7 +711,11 @@ typedef uint32_t mp_float_int_t;
711
#endif
712
union {
713
mp_float_t f;
714
+ #if MP_ENDIANNESS_LITTLE
715
struct { mp_float_int_t frc:MP_FLOAT_FRAC_BITS, exp:MP_FLOAT_EXP_BITS, sgn:1; } p;
716
+ #else
717
+ struct { mp_float_int_t sgn:1, exp:MP_FLOAT_EXP_BITS, frc:MP_FLOAT_FRAC_BITS; } p;
718
+ #endif
719
} u = {src};
720
721
z->neg = u.p.sgn;
0 commit comments