From 12ec40c5c2b51e826477c557922297f105a41fdb Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 1 Jul 2010 08:50:46 +0000 Subject: [PATCH] threadPaused: fix pointer arithmetic Noticed by Henrique Ferreiro , thanks! --- rts/ThreadPaused.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/ThreadPaused.c b/rts/ThreadPaused.c index 7aee59d..94a5a15 100644 --- a/rts/ThreadPaused.c +++ b/rts/ThreadPaused.c @@ -252,7 +252,7 @@ threadPaused(Capability *cap, StgTSO *tso) // And continue with threadPaused; there might be // yet more computation to suspend. - frame = (StgClosure *)tso->sp + 2; + frame = (StgClosure *)(tso->sp + 2); prev_was_update_frame = rtsFalse; continue; } -- 1.7.10.4