Skip to content

Commit bb3aa37

Browse files
committed
fix(test): resolve Windows compilation error in worker thread return type
1 parent c171881 commit bb3aa37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,11 @@ void* worker(void* arg) {
345345
if(test_report(description, result)){
346346
printf("PEER %d FAIL.\n", thread_id+1);
347347
// Return error code instead of exiting entire process
348+
#ifdef _WIN32
349+
return (DWORD)(intptr_t)(thread_id+1);
350+
#else
348351
return (void*)(intptr_t)(thread_id+1);
352+
#endif
349353
}
350354

351355
#ifdef _WIN32

0 commit comments

Comments
 (0)