diff --git a/source/vector.c b/source/vector.c index d51f267..564cadb 100644 --- a/source/vector.c +++ b/source/vector.c @@ -41,7 +41,7 @@ void vector_pop(vector_t * vector) { void * vector_get(const vector_t * const vector, const size_t element) { assert(vector); - assert(element >= vector->element_count); + assert(element < vector->element_count); return &vector->data[vector->element_size * element]; }