fix: updating arena and arraylist use

This commit is contained in:
2026-05-14 08:36:21 -06:00
parent 9ea1da549f
commit 964034b203
4 changed files with 9 additions and 5 deletions

View File

@@ -15,7 +15,8 @@ typedef enum {
TokenizeResult tokenize(const char *input) {
ArrayList *arr = arraylist_init(64, sizeof(Token));
ArrayList *arr;
arraylist_init(&arr, 64, sizeof(Token));
size_t offset = 0;
while (input[offset] != '\0') {