Fix MSVC errors

This commit is contained in:
Abdelrahman Said 2025-05-05 16:41:56 +01:00
parent 4e3945d1d0
commit aae39fe656

View File

@ -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;