projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c655c
)
Missing .0 on float constant.
author
Don Stewart
<dons@galois.com>
Thu, 1 May 2008 00:05:17 +0000
(
00:05
+0000)
committer
Don Stewart
<dons@galois.com>
Thu, 1 May 2008 00:05:17 +0000
(
00:05
+0000)
rts/StgPrimFloat.c
patch
|
blob
|
history
diff --git
a/rts/StgPrimFloat.c
b/rts/StgPrimFloat.c
index
150bdc6
..
80f10e1
100644
(file)
--- a/
rts/StgPrimFloat.c
+++ b/
rts/StgPrimFloat.c
@@
-89,7
+89,7
@@
__2Int_encodeDouble (I_ j_high, I_ j_low, I_ e)
ASSERT(sizeof(int ) == 4 );
r = (StgDouble)((unsigned int)j_high);
- r *= 4294967296; /* exp2f(32); */
+ r *= 4294967296.0; /* exp2f(32); */
r += (StgDouble)((unsigned int)j_low);
/* Now raise to the exponent */