Fix bug in array codegen

This commit is contained in:
2025-05-05 19:15:58 +01:00
parent 6c8434a530
commit 74164717d0
3 changed files with 42 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
assert(array != NULL & index < array->count);
assert(array != NULL && index < array->count);
u8 *ptr = (u8 *)(array->items) + (array->item_size * index);
return ({T} *)ptr;