mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +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;
|
GQuark quark;
|
||||||
gchar *value;
|
gchar *value;
|
||||||
wchar_t dummy[2], *wname, *wvalue;
|
wchar_t dummy[2], *wname, *wvalue;
|
||||||
int len;
|
DWORD len;
|
||||||
|
|
||||||
g_return_val_if_fail (variable != NULL, NULL);
|
g_return_val_if_fail (variable != NULL, NULL);
|
||||||
g_return_val_if_fail (g_utf8_validate (variable, -1, NULL), NULL);
|
g_return_val_if_fail (g_utf8_validate (variable, -1, NULL), NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user