Fix signedness warning in glib/gthread-win32.c

glib/gthread-win32.c: In function 'g_system_thread_new':
glib/gthread-win32.c:507:37: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int'
   if (ResumeThread (thread->handle) == -1)
                                     ^~
This commit is contained in:
Emmanuel Fleury 2021-05-14 13:33:00 +02:00
parent e212c5a28d
commit c9b4b0e765

View File

@ -514,7 +514,7 @@ g_system_thread_new (GThreadFunc proxy,
goto error; goto error;
} }
if (ResumeThread (thread->handle) == -1) if (ResumeThread (thread->handle) == (DWORD) -1)
{ {
message = "Error resuming new thread"; message = "Error resuming new thread";
goto error; goto error;