Fix MSVC errors
This commit is contained in:
parent
4e3945d1d0
commit
aae39fe656
@ -62,7 +62,8 @@ TestFuncResult test_i32_array_set(void) {
|
||||
u64 index = 0;
|
||||
bool running = true;
|
||||
while (running) {
|
||||
wapp_i32_array_set(&array, index, &((i32){index * 2}));
|
||||
i32 num = (i32)(index * 2);
|
||||
wapp_i32_array_set(&array, index, &num);
|
||||
item = wapp_i32_array_get(&array, index);
|
||||
result = result && item && (*item == (i32)(index * 2));
|
||||
|
||||
@ -202,7 +203,8 @@ TestFuncResult test_i32_array_append_alloc(void) {
|
||||
u64 index = 0;
|
||||
bool running = true;
|
||||
while (running) {
|
||||
arr_ptr = wapp_i32_array_append_alloc(&allocator, &array2, &((i32){index}));
|
||||
i32 num = (i32)index;
|
||||
arr_ptr = wapp_i32_array_append_alloc(&allocator, &array2, &num);
|
||||
|
||||
++index;
|
||||
running = index < count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user