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:
802feb4
)
[project @ 1998-03-11 16:54:13 by sof]
author
sof
<unknown>
Wed, 11 Mar 1998 16:54:13 +0000
(16:54 +0000)
committer
sof
<unknown>
Wed, 11 Mar 1998 16:54:13 +0000
(16:54 +0000)
jtos: leave Integer-land ASAP
ghc/lib/std/PrelNum.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/std/PrelNum.lhs
b/ghc/lib/std/PrelNum.lhs
index
a562fac
..
679329a
100644
(file)
--- a/
ghc/lib/std/PrelNum.lhs
+++ b/
ghc/lib/std/PrelNum.lhs
@@
-848,7
+848,7
@@
jtos' n cs
= if n < 10 then
chr (fromInteger (n + ord_0)) : cs
else
- jtos' (n `quot` 10) (chr (fromInteger (n `rem` 10 + ord_0)) : cs)
+ jtos' (n `quot` 10) (chr (toInt (n `rem` 10) + (ord_0::Int)) : cs)
showFloat x = showString (formatRealFloat FFGeneric Nothing x)