[project @ 2005-04-28 21:31:45 by simonmar]
authorsimonmar <unknown>
Thu, 28 Apr 2005 21:31:45 +0000 (21:31 +0000)
committersimonmar <unknown>
Thu, 28 Apr 2005 21:31:45 +0000 (21:31 +0000)
StgFunInfoExtra_slow_apply(): convert the slow_apply_offset to a W_
before arithmetic.

ghc/includes/Cmm.h

index 09320a0..e989a00 100644 (file)
  */
         
 #define StgFunInfoExtra_slow_apply(fun_info)    \
-        (StgFunInfoExtraRev_slow_apply_offset(fun_info)    \
-        + (fun_info) + SIZEOF_StgFunInfoExtraRev + SIZEOF_StgInfoTable)
+        (TO_W_(StgFunInfoExtraRev_slow_apply_offset(fun_info))    \
+               + (fun_info) + SIZEOF_StgFunInfoExtraRev + SIZEOF_StgInfoTable)
 
 #define StgFunInfoExtra_fun_type(i)   StgFunInfoExtraRev_fun_type(i)
 #define StgFunInfoExtra_arity(i)      StgFunInfoExtraRev_arity(i)