Commit 894864ea authored by Simon Marlow's avatar Simon Marlow
Browse files

add an assertion

parent 5f7079b9
......@@ -151,6 +151,7 @@ popWSDeque (WSDeque *q)
q->topBound = t+1; /* ...and cached top value as well */
ASSERT_WSDEQUE_INVARIANTS(q);
ASSERT(q->bottom >= q->top);
return removed;
}
......
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