chore: use size_t for indexing and iterating

This commit is contained in:
2024-12-25 20:22:28 +01:00
parent e13a8ff79c
commit f34a71195e
6 changed files with 13 additions and 12 deletions

View File

@@ -119,7 +119,7 @@ void* vec_pop(struct Vector* vec) {
return vec->pages[--vec->length];
}
void* vec_get(struct Vector* vec, uint32_t index) {
void* vec_get(struct Vector* vec, size_t index) {
if (index >= vec->length)
return NULL;