Strengthen assert to indicate that q->end is less than q->cur

Coverity CID-167665
This commit is contained in:
Alex Coyte 2017-04-27 13:58:55 +10:00 committed by Matthew Barr
parent 8b9328fe9e
commit b30e5021f1

View File

@ -150,7 +150,7 @@ hwlmcb_rv_t roseHandleChainMatch(const struct RoseEngine *t,
}
if (top_squash_distance) {
assert(q->cur != q->end);
assert(q->cur < q->end);
struct mq_item *last = &q->items[q->end - 1];
if (last->type == event
&& last->location >= loc - (s64a)top_squash_distance) {