mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Fix signedness warning in glib/genviron.c
glib/genviron.c: In function 'g_getenv': glib/genviron.c:490:52: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (GetEnvironmentVariableW (wname, wvalue, len) != len - 1) ^~ glib/genviron.c:507:60: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (ExpandEnvironmentStringsW (tem, wvalue, len) != len) ^~
This commit is contained in:
parent
affa41179a
commit
574842a12e
@ -454,7 +454,7 @@ g_getenv (const gchar *variable)
|
||||
GQuark quark;
|
||||
gchar *value;
|
||||
wchar_t dummy[2], *wname, *wvalue;
|
||||
int len;
|
||||
DWORD len;
|
||||
|
||||
g_return_val_if_fail (variable != NULL, NULL);
|
||||
g_return_val_if_fail (g_utf8_validate (variable, -1, NULL), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user