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




commit a8a4bbf65245e6abaa47cabfc033048dff0dc62a
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri May 14 11:49:14 2021 +0200

    Fix signedness warning in glib/gspawn-win32.c
    
    glib/gspawn-win32.c: In function 'read_helper_report':
    glib/gspawn-win32.c:329:16: warning: comparison of integer expressions of different signedness: 'gint' 
{aka 'int'} and 'long long unsigned int'
       while (bytes < sizeof(gintptr)*2)
                    ^
    glib/gspawn-win32.c:366:13: warning: comparison of integer expressions of different signedness: 'gint' 
{aka 'int'} and 'long long unsigned int'
       if (bytes < sizeof(gintptr)*2)
                 ^

 glib/gspawn-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gspawn-win32.c b/glib/gspawn-win32.c
index 638bac5cd..182928cb4 100644
--- a/glib/gspawn-win32.c
+++ b/glib/gspawn-win32.c
@@ -324,7 +324,7 @@ read_helper_report (int      fd,
                    gintptr  report[2],
                    GError **error)
 {
-  gint bytes = 0;
+  gsize bytes = 0;
   
   while (bytes < sizeof(gintptr)*2)
     {


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