fix compile error in the !GHCI_TABLES_NEXT_TO_CODE case
authorSimon Marlow <simonmar@microsoft.com>
Tue, 12 Jun 2007 07:46:57 +0000 (07:46 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 12 Jun 2007 07:46:57 +0000 (07:46 +0000)
compiler/ghci/Linker.lhs

index 76e9f31..fe009c2 100644 (file)
@@ -223,7 +223,7 @@ dataConInfoPtrToName x = do
        offsetToString <- peek $ ptr `plusPtr` (- wORD_SIZE)
        return $ (ptr `plusPtr` stdInfoTableSizeB) `plusPtr` (fromIntegral (offsetToString :: StgWord))
 #else
-       peek $ intPtrToPtr $ (ptrToIntPtr ptr) + stdInfoTableSizeB
+       peek $ intPtrToPtr $ (ptrToIntPtr ptr) + fromIntegral stdInfoTableSizeB
 #endif
 
    -- parsing names is a little bit fiddly because we have a string in the form: