fixed another broken assert

This commit is contained in:
anon 2023-08-25 21:25:15 +02:00
parent 73066beae0
commit 0226488696

View File

@ -41,7 +41,7 @@ void vector_pop(vector_t * vector) {
void * vector_get(const vector_t * const vector, void * vector_get(const vector_t * const vector,
const size_t element) { const size_t element) {
assert(vector); assert(vector);
assert(element >= vector->element_count); assert(element < vector->element_count);
return &vector->data[vector->element_size * element]; return &vector->data[vector->element_size * element];
} }