aboutsummaryrefslogtreecommitdiff
path: root/lib/fixdfti.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-03 09:12:20 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-03 09:12:20 +0000
commitaabd961cc27f5d05f441375e5ba4242d63fea11f (patch)
tree319d56d8675641e611da11b3ad12f87801001cdd /lib/fixdfti.c
parente8178e2a99ae5d7ccfe5882804a294fd0d3f453f (diff)
Fix some files that got left behind in early changeset to unnamed unions fix. Credit to Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@80913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fixdfti.c')
-rw-r--r--lib/fixdfti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fixdfti.c b/lib/fixdfti.c
index 00b6cfc5b..359b84eae 100644
--- a/lib/fixdfti.c
+++ b/lib/fixdfti.c
@@ -30,10 +30,10 @@ __fixdfti(double a)
{
double_bits fb;
fb.f = a;
- int e = ((fb.u.high & 0x7FF00000) >> 20) - 1023;
+ int e = ((fb.u.s.high & 0x7FF00000) >> 20) - 1023;
if (e < 0)
return 0;
- ti_int s = (si_int)(fb.u.high & 0x80000000) >> 31;
+ ti_int s = (si_int)(fb.u.s.high & 0x80000000) >> 31;
ti_int r = 0x0010000000000000uLL | (0x000FFFFFFFFFFFFFuLL & fb.u.all);
if (e > 52)
r <<= (e - 52);