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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index b7d6226ee7..d57f7a094b 100644
--- a/rts/sm/MarkWeak.c
+++ b/rts/sm/MarkWeak.c
@@ -127,7 +127,7 @@ traverseWeakPtrList(void)
continue;
}
- info = get_itbl(w);
+ info = get_itbl((StgClosure *)w);
switch (info->type) {
case WEAK:
@@ -269,7 +269,7 @@ static rtsBool tidyThreadList (generation *gen)
t = tmp;
}
- ASSERT(get_itbl(t)->type == TSO);
+ ASSERT(get_itbl((StgClosure *)t)->type == TSO);
next = t->global_link;
// if the thread is not masking exceptions but there are