summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-07-19 08:54:18 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-07-20 09:17:14 +0100
commit44f61d398a55c3dca74bc173cd6fb66e1762d982 (patch)
tree119be3b42bce1c5f2eeb256220409870b4a01efb /compiler
parentc35d8c362ff553ee2c1952a388e64c761be89469 (diff)
downloadhaskell-44f61d398a55c3dca74bc173cd6fb66e1762d982.tar.gz
Support 64-bit literals in the byte code generator (fixes recent test
failures in print002 etc. on 32-bit platforms)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ghci/ByteCodeGen.lhs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/ghci/ByteCodeGen.lhs b/compiler/ghci/ByteCodeGen.lhs
index 30bcef2e0c..e5898a2c7f 100644
--- a/compiler/ghci/ByteCodeGen.lhs
+++ b/compiler/ghci/ByteCodeGen.lhs
@@ -1232,7 +1232,9 @@ pushAtom _ _ (AnnLit lit)
= case lit of
MachLabel _ _ _ -> code NonPtrArg
MachWord _ -> code NonPtrArg
- MachInt _ -> code PtrArg
+ MachInt _ -> code NonPtrArg
+ MachWord64 _ -> code LongArg
+ MachInt64 _ -> code LongArg
MachFloat _ -> code FloatArg
MachDouble _ -> code DoubleArg
MachChar _ -> code NonPtrArg