diff options
Diffstat (limited to 'src/util/u_vector.c')
-rw-r--r-- | src/util/u_vector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/u_vector.c b/src/util/u_vector.c index 0de492ccf9a..bec6e5bbc30 100644 --- a/src/util/u_vector.c +++ b/src/util/u_vector.c @@ -37,8 +37,8 @@ int u_vector_init(struct u_vector *vector, uint32_t element_size, uint32_t size) { - assert(util_is_power_of_two(size)); - assert(element_size < size && util_is_power_of_two(element_size)); + assert(util_is_power_of_two_or_zero(size)); + assert(element_size < size && util_is_power_of_two_or_zero(element_size)); vector->head = 0; vector->tail = 0; |