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:
Emmanuel Fleury 2021-05-14 12:42:01 +02:00
parent 5471c13f65
commit 78af147721

View File

@ -349,7 +349,7 @@ g_file_test (const gchar *filename,
GFileTest test) GFileTest test)
{ {
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
int attributes; DWORD attributes;
wchar_t *wfilename; wchar_t *wfilename;
#endif #endif
@ -2875,7 +2875,7 @@ g_get_current_dir (void)
gchar *dir = NULL; gchar *dir = NULL;
wchar_t dummy[2], *wdir; wchar_t dummy[2], *wdir;
int len; DWORD len;
len = GetCurrentDirectoryW (2, dummy); len = GetCurrentDirectoryW (2, dummy);
wdir = g_new (wchar_t, len); wdir = g_new (wchar_t, len);