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

@@ -3,6 +3,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
#include "keys.h"
@@ -25,6 +26,6 @@ void vec_free(struct Vector*);
void vec_clear(struct Vector*);
void vec_reset(struct Vector*);
void* vec_pop(struct Vector*); // won't free it, nor shrink vec list space
void* vec_get(struct Vector*, uint32_t index);
void* vec_get(struct Vector*, size_t index);
#endif