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:
0366875
)
bugfix: an unsigned comparison should be signed
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 6 Feb 2009 13:07:45 +0000
(13:07 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 6 Feb 2009 13:07:45 +0000
(13:07 +0000)
rts/parallel/WSDeque.c
patch
|
blob
|
history
diff --git
a/rts/parallel/WSDeque.c
b/rts/parallel/WSDeque.c
index
6dfabd9
..
75ff919
100644
(file)
--- a/
rts/parallel/WSDeque.c
+++ b/
rts/parallel/WSDeque.c
@@
-136,7
+136,7
@@
popWSDeque (WSDeque *q)
need a lower bound. We use the real top here, but
can update the topBound value */
q->topBound = t;
- currSize = b - t;
+ currSize = (long)b - (long)t;
if (currSize < 0) { /* was empty before decrementing b, set b
consistently and abort */
q->bottom = t;