[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_.
Showing
Please register or sign in to comment