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) ||
                              ^~
This commit is contained in:
Emmanuel Fleury 2021-05-14 14:27:27 +02:00
parent 9e3a08b222
commit f9b4a557b1

View File

@ -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;
}
}