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:
f74c3a0
)
[project @ 2002-02-11 15:48:58 by simonmar]
author
simonmar
<unknown>
Mon, 11 Feb 2002 15:48:58 +0000
(15:48 +0000)
committer
simonmar
<unknown>
Mon, 11 Feb 2002 15:48:58 +0000
(15:48 +0000)
fromInt ==> fromIntegral
ghc/compiler/coreSyn/CoreUnfold.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/coreSyn/CoreUnfold.lhs
b/ghc/compiler/coreSyn/CoreUnfold.lhs
index
9046341
..
195ac48
100644
(file)
--- a/
ghc/compiler/coreSyn/CoreUnfold.lhs
+++ b/
ghc/compiler/coreSyn/CoreUnfold.lhs
@@
-58,7
+58,7
@@
import FastTypes
import Outputable
#if __GLASGOW_HASKELL__ >= 404
-import GlaExts ( fromInt, Int# )
+import GlaExts ( Int# )
#endif
\end{code}
@@
-669,7
+669,7
@@
computeDiscount n_vals_wanted arg_discounts res_discount arg_infos result_used
-- Discount of 1 for each arg supplied, because the
-- result replaces the call
round (opt_UF_KeenessFactor *
- fromInt (arg_discount + result_discount))
+ fromIntegral (arg_discount + result_discount))
where
arg_discount = sum (zipWith mk_arg_discount arg_discounts arg_infos)