Commit 12ec40c5 authored by Simon Marlow's avatar Simon Marlow

threadPaused: fix pointer arithmetic

Noticed by Henrique Ferreiro <hferreiro@udc.es>, thanks!
parent dc1deada
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment