1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix -fsanitize=address for c_array_test.c

This commit is contained in:
Delyan Angelov 2022-08-23 12:16:55 +03:00
parent 42c0bae9ce
commit 3c23eebe51
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -7,9 +7,9 @@ void* gen_c_array(int size) {
}
void* gen_c_int_array(int size) {
int *c_array = malloc(size);
int *c_array = malloc(size * sizeof(int));
for(int i = 0; i < size; i++) {
c_array[i] = i & 0xFF;
c_array[i] = i;
}
return c_array;
}