summaryrefslogtreecommitdiff
path: root/lib/fixunsdfdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fixunsdfdi.c')
-rw-r--r--lib/fixunsdfdi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fixunsdfdi.c b/lib/fixunsdfdi.c
index 4d5dcfeb..bdcee13e 100644
--- a/lib/fixunsdfdi.c
+++ b/lib/fixunsdfdi.c
@@ -31,12 +31,12 @@ __fixunsdfdi(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;
udwords r;
- r.high = (fb.u.high & 0x000FFFFF) | 0x00100000;
- r.low = fb.u.low;
+ r.s.high = (fb.u.s.high & 0x000FFFFF) | 0x00100000;
+ r.s.low = fb.u.s.low;
if (e > 52)
r.all <<= (e - 52);
else