From 02264886960e921a8f58d9c5901b74b06fb9758b Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 25 Aug 2023 21:25:15 +0200 Subject: [PATCH] fixed another broken assert --- source/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }