summaryrefslogtreecommitdiff
path: root/rts/sm/MarkWeak.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/sm/MarkWeak.c')
-rw-r--r--rts/sm/MarkWeak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index 9883def2a8..99383ebd42 100644
--- a/rts/sm/MarkWeak.c
+++ b/rts/sm/MarkWeak.c
@@ -386,7 +386,7 @@ void collectFreshWeakPtrs()
uint32_t i;
// move recently allocated weak_ptr_list to the old list as well
for (i = 0; i < getNumCapabilities(); i++) {
- Capability *cap = capabilities[i];
+ Capability *cap = getCapability(i);
if (cap->weak_ptr_list_tl != NULL) {
IF_DEBUG(sanity, checkWeakPtrSanity(cap->weak_ptr_list_hd, cap->weak_ptr_list_tl));
cap->weak_ptr_list_tl->link = g0->weak_ptr_list;