mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
Fix signedness warnings in glib/gwin32.c
glib/gwin32.c: In function 'g_win32_check_windows_version': glib/gwin32.c:556:32: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'gint' {aka 'const int'} if (osverinfo.dwMajorVersion > major) ^ glib/gwin32.c:558:37: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'gint' {aka 'const int'} else if (osverinfo.dwMajorVersion == major) ^~ glib/gwin32.c:560:36: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'gint' {aka 'const int'} if (osverinfo.dwMinorVersion > minor) ^ glib/gwin32.c:562:41: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'gint' {aka 'const int'} else if (osverinfo.dwMinorVersion == minor) ^~
This commit is contained in:
parent
6971f4f264
commit
2f2e021a56
@ -553,14 +553,14 @@ g_win32_check_windows_version (const gint major,
|
||||
RtlGetVersion (&osverinfo);
|
||||
|
||||
/* check the OS and Service Pack Versions */
|
||||
if (osverinfo.dwMajorVersion > major)
|
||||
if (osverinfo.dwMajorVersion > (DWORD) major)
|
||||
is_ver_checked = TRUE;
|
||||
else if (osverinfo.dwMajorVersion == major)
|
||||
else if (osverinfo.dwMajorVersion == (DWORD) major)
|
||||
{
|
||||
if (osverinfo.dwMinorVersion > minor)
|
||||
if (osverinfo.dwMinorVersion > (DWORD) minor)
|
||||
is_ver_checked = TRUE;
|
||||
else if (osverinfo.dwMinorVersion == minor)
|
||||
if (osverinfo.wServicePackMajor >= spver)
|
||||
else if (osverinfo.dwMinorVersion == (DWORD) minor)
|
||||
if (osverinfo.wServicePackMajor >= (DWORD) spver)
|
||||
is_ver_checked = TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user