Fix bug in array codegen
This commit is contained in:
@@ -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;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
assert(allocator != NULL & src != NULL && dst != NULL);
|
||||
assert(allocator != NULL && src != NULL && dst != NULL);
|
||||
|
||||
{ArrayType} *output = dst;
|
||||
|
||||
|
Reference in New Issue
Block a user