Commit f3f4b553 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

array: Assert size <= capacity for ARR_D, too, not just ARR_F.

parent 14c58c47
......@@ -36,7 +36,7 @@ void ir_verify_arr(const void *arr)
#ifndef NDEBUG
ir_arr_descr *descr = ARR_DESCR(arr);
assert(descr->magic == ARR_D_MAGIC || descr->magic == ARR_F_MAGIC);
assert(descr->magic != ARR_F_MAGIC || descr->allocated >= descr->nelts);
assert(descr->allocated >= descr->nelts);
(void) arr;
Supports Markdown
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