projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc1dead
)
threadPaused: fix pointer arithmetic
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 1 Jul 2010 08:50:46 +0000
(08:50 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 1 Jul 2010 08:50:46 +0000
(08:50 +0000)
Noticed by Henrique Ferreiro <hferreiro@udc.es>, thanks!
rts/ThreadPaused.c
patch
|
blob
|
history
diff --git
a/rts/ThreadPaused.c
b/rts/ThreadPaused.c
index
7aee59d
..
94a5a15
100644
(file)
--- 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;
}