bugfix: an unsigned comparison should be signed
authorSimon Marlow <marlowsd@gmail.com>
Fri, 6 Feb 2009 13:07:45 +0000 (13:07 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 6 Feb 2009 13:07:45 +0000 (13:07 +0000)
rts/parallel/WSDeque.c

index 6dfabd9..75ff919 100644 (file)
@@ -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;