fixed another broken assert
This commit is contained in:
parent
73066beae0
commit
0226488696
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user