[glib: 2/7] Fix signedness warning in gio/gwin32packageparser.c




commit f9b4a557b177a79de0ee4408ca72e89dd1956e87
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri May 14 14:27:27 2021 +0200

    Fix signedness warning in gio/gwin32packageparser.c
    
    gio/gwin32packageparser.c: In function 'WIN32_FROM_HRESULT':
    gio/gwin32packageparser.c:99:30: warning: comparison of integer expressions of different signedness: 
'long unsigned int' and 'long int'
       if ((hresult & 0xFFFF0000) == MAKE_HRESULT (SEVERITY_ERROR, FACILITY_WIN32, 0) ||
                                  ^~

 gio/gwin32packageparser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gwin32packageparser.c b/gio/gwin32packageparser.c
index ee05bb1dd..58b99947c 100755
--- a/gio/gwin32packageparser.c
+++ b/gio/gwin32packageparser.c
@@ -96,7 +96,7 @@ static BOOL
 WIN32_FROM_HRESULT (HRESULT hresult,
                     DWORD  *win32_error_code)
 {
-  if ((hresult & 0xFFFF0000) == MAKE_HRESULT (SEVERITY_ERROR, FACILITY_WIN32, 0) ||
+  if ((hresult & (HRESULT) 0xFFFF0000) == MAKE_HRESULT (SEVERITY_ERROR, FACILITY_WIN32, 0) ||
       hresult == S_OK)
     {
       *win32_error_code = HRESULT_CODE (hresult);
@@ -815,4 +815,4 @@ xml_parser_iteration (struct _xml_sax_state  *sax,
     }
 
   return TRUE;
-}
\ No newline at end of file
+}


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