[project @ 2004-11-22 04:34:01 by wolfgang]
authorwolfgang <unknown>
Mon, 22 Nov 2004 04:34:01 +0000 (04:34 +0000)
committerwolfgang <unknown>
Mon, 22 Nov 2004 04:34:01 +0000 (04:34 +0000)
commit0a565be58ffcde267b09f8c1820a61428afce1c7
treeda1fd807ff8dbcdb7384bb67f572025c1053295a
parentee0e16d4703f59f5c2f7301de9cd5140427a8ff1
[project @ 2004-11-22 04:34:01 by wolfgang]
Fix memory transaction primops for 64bit:
The proper way to write (StgBool) true and false in Cmm is 1 :: CInt and
0 :: CInt, respectively.
This is because StgBool is defined as int,
which is often 32bit on 64bit platforms, while Cmm integer literals without
type annotations are 64bit words on 64bit platforms.

So everyone please remember: int and StgBool are not always the same size as
StgInt, StgWord and W_.
ghc/rts/PrimOps.cmm