[project @ 1999-09-06 14:57:30 by simonmar]
authorsimonmar <unknown>
Mon, 6 Sep 1999 14:59:09 +0000 (14:59 +0000)
committersimonmar <unknown>
Mon, 6 Sep 1999 14:59:09 +0000 (14:59 +0000)
fromInt stuff

ghc/compiler/nativeGen/AbsCStixGen.lhs
ghc/compiler/nativeGen/StixInfo.lhs

index 4c7553f..7c943b4 100644 (file)
@@ -416,7 +416,7 @@ be tuned.)
 \begin{code}
 
  intTag :: Literal -> Integer
- intTag (MachChar c)  = fromInt (ord c)
+ intTag (MachChar c)  = toInteger (ord c)
  intTag (MachInt i _) = i
  intTag _ = panic "intTag"
 
index b72675f..17bbf98 100644 (file)
@@ -25,6 +25,10 @@ import BitSet                ( intBS )
 
 import Bits
 import Word
+
+#if __GLASGOW_HASKELL__ >= 404
+import GlaExts         ( fromInt )
+#endif
 \end{code}
 
 Generating code for info tables (arrays of data).