From: Simon Marlow Date: Fri, 6 Feb 2009 13:07:45 +0000 (+0000) Subject: bugfix: an unsigned comparison should be signed X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=03ef5bd295f3ba7473b3dee99691fe1b2e077a0c;hp=0366875f9b2b687b6d2af34eb5eab9da493b2c53;p=ghc-hetmet.git bugfix: an unsigned comparison should be signed --- diff --git a/rts/parallel/WSDeque.c b/rts/parallel/WSDeque.c index 6dfabd9..75ff919 100644 --- 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;