Fix assertion in queues.dequeue

This commit is contained in:
Clay Sweetser
2014-05-24 08:41:12 -04:00
parent b54f66eeff
commit 05953381e9

View File

@@ -59,7 +59,7 @@ proc enqueue*[T](q: var TQueue[T], item: T) =
proc dequeue*[T](q: var TQueue[T]): T =
## removes and returns the first element of the queue `q`.
assert q.count > 0
assert q.len > 0
dec q.count
result = q.data[q.rd]
q.rd = (q.rd + 1) and q.mask