diff options
Diffstat (limited to 'lib/fixunsdfti.c')
-rw-r--r-- | lib/fixunsdfti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fixunsdfti.c b/lib/fixunsdfti.c index f765c009..c1cd72de 100644 --- a/lib/fixunsdfti.c +++ b/lib/fixunsdfti.c @@ -33,8 +33,8 @@ __fixunsdfti(double a) { double_bits fb; fb.f = a; - int e = ((fb.u.high & 0x7FF00000) >> 20) - 1023; - if (e < 0 || (fb.u.high & 0x80000000)) + int e = ((fb.u.s.high & 0x7FF00000) >> 20) - 1023; + if (e < 0 || (fb.u.s.high & 0x80000000)) return 0; tu_int r = 0x0010000000000000uLL | (fb.u.all & 0x000FFFFFFFFFFFFFuLL); if (e > 52) |