summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/Interpreter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Interpreter.c b/rts/Interpreter.c
index 2a886ff8a4..463ddae18b 100644
--- a/rts/Interpreter.c
+++ b/rts/Interpreter.c
@@ -1423,11 +1423,11 @@ run_BCO:
}
case bci_ALLOC_AP: {
- StgAP* ap;
int n_payload = BCO_NEXT;
- ap = (StgAP*)allocate(cap, AP_sizeW(n_payload));
+ StgAP *ap = (StgAP*)allocate(cap, AP_sizeW(n_payload));
SpW(-1) = (W_)ap;
ap->n_args = n_payload;
+ ap->arity = 0;
// No write barrier is needed here as this is a new allocation
// visible only from our stack
SET_HDR(ap, &stg_AP_info, cap->r.rCCCS)
@@ -1436,11 +1436,11 @@ run_BCO:
}
case bci_ALLOC_AP_NOUPD: {
- StgAP* ap;
int n_payload = BCO_NEXT;
- ap = (StgAP*)allocate(cap, AP_sizeW(n_payload));
+ StgAP *ap = (StgAP*)allocate(cap, AP_sizeW(n_payload));
SpW(-1) = (W_)ap;
ap->n_args = n_payload;
+ ap->arity = 0;
// No write barrier is needed here as this is a new allocation
// visible only from our stack
SET_HDR(ap, &stg_AP_NOUPD_info, cap->r.rCCCS)