[glib: 1/8] Fix signedness warning in glib/gthread-win32.c




commit c9b4b0e765893976cbe3e26394ff359172fb3ee5
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri May 14 13:33:00 2021 +0200

    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)
                                         ^~

 glib/gthread-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c
index 79e397820..8ea6af3cc 100644
--- a/glib/gthread-win32.c
+++ b/glib/gthread-win32.c
@@ -514,7 +514,7 @@ g_system_thread_new (GThreadFunc proxy,
       goto error;
     }
 
-  if (ResumeThread (thread->handle) == -1)
+  if (ResumeThread (thread->handle) == (DWORD) -1)
     {
       message = "Error resuming new thread";
       goto error;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]