bugfix: an unsigned comparison should be signed
[ghc-hetmet.git] / 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;