From: simonmar Date: Mon, 11 Jul 2005 15:34:07 +0000 (+0000) Subject: [project @ 2005-07-11 15:34:07 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~376 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=86024676b79116949cb2ad4d7843f3b4c1fba088;p=ghc-hetmet.git [project @ 2005-07-11 15:34:07 by simonmar] make_constr_itbls: 64-bit fix (size of info table was hardcoded) --- diff --git a/ghc/compiler/ghci/ByteCodeItbls.lhs b/ghc/compiler/ghci/ByteCodeItbls.lhs index 5cc07d6..835fd2a 100644 --- a/ghc/compiler/ghci/ByteCodeItbls.lhs +++ b/ghc/compiler/ghci/ByteCodeItbls.lhs @@ -112,7 +112,7 @@ make_constr_itbls cons --putStrLn ("# ptrs of itbl is " ++ show ptrs) --putStrLn ("# nptrs of itbl is " ++ show nptrs_really) poke addr itbl - return (getName dcon, addr `plusPtr` 8) + return (getName dcon, addr `plusPtr` (2 * wORD_SIZE)) -- Make code which causes a jump to the given address. This is the