summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
Diffstat (limited to 'rts')
-rw-r--r--rts/sm/Storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index 7da0c70e46..17798a25b8 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -796,7 +796,7 @@ allocatePinned (Capability *cap, lnat n)
if (bd->link != NULL) {
bd->link->u.back = cap->r.rCurrentNursery;
}
- cap->r.rNursery->n_blocks--;
+ cap->r.rNursery->n_blocks -= bd->blocks;
}
cap->pinned_object_block = bd;