[project @ 2005-05-05 11:33:10 by simonmar]
[ghc-hetmet.git] / ghc / rts / Apply.cmm
index 1fe444e..c627995 100644 (file)
@@ -41,7 +41,7 @@ INFO_TABLE_RET( stg_ap_0,
     // fn is in R1, no args on the stack
 
     IF_DEBUG(apply,
-       foreign "C" fprintf(W_[stderr] "ptr", stg_ap_0_ret_str);
+       foreign "C" debugBelch(stg_ap_0_ret_str);
        foreign "C" printClosure(R1 "ptr"));
 
     IF_DEBUG(sanity,
@@ -264,7 +264,7 @@ INFO_TABLE(stg_AP_STACK,/*special layout*/0,0,AP_STACK,"AP_STACK","AP_STACK")
   // Reload the stack
   W_ i;
   W_ p;
-  p = ap + SIZEOF_StgHeader + OFFSET_StgAP_STACK_payload;
+  p = ap + SIZEOF_StgThunkHeader + OFFSET_StgAP_STACK_payload;
   i = 0;
 for:
   if (i < Words) {