mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
9e3a08b222
commit
f9b4a557b1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user