mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Fix signedness warning in glib/gfileutils.c
glib/gfileutils.c: In function 'g_file_test': glib/gfileutils.c:375:18: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' if (attributes == INVALID_FILE_ATTRIBUTES) ^~ glib/gfileutils.c: In function 'g_get_current_dir': glib/gfileutils.c:2882:40: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (GetCurrentDirectoryW (len, wdir) == len - 1) ^~
This commit is contained in:
parent
5471c13f65
commit
78af147721
@ -349,7 +349,7 @@ g_file_test (const gchar *filename,
|
||||
GFileTest test)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
int attributes;
|
||||
DWORD attributes;
|
||||
wchar_t *wfilename;
|
||||
#endif
|
||||
|
||||
@ -2875,7 +2875,7 @@ g_get_current_dir (void)
|
||||
|
||||
gchar *dir = NULL;
|
||||
wchar_t dummy[2], *wdir;
|
||||
int len;
|
||||
DWORD len;
|
||||
|
||||
len = GetCurrentDirectoryW (2, dummy);
|
||||
wdir = g_new (wchar_t, len);
|
||||
|
Loading…
Reference in New Issue
Block a user