Commit 03ef5bd2 authored by Simon Marlow's avatar Simon Marlow
Browse files

bugfix: an unsigned comparison should be signed

parent 0366875f
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment