From 059dc76ae1ffc0d0561cb1e7ce27a0c8d742d60c Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 14 May 2021 13:54:06 +0200 Subject: [PATCH] Fix signedness warnings in gio/win32/gwinhttpvfs.c gio/win32/gwinhttpvfs.c: In function 'g_winhttp_vfs_get_file_for_uri': gio/win32/gwinhttpvfs.c:172:17: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' for (i = 0; i < G_N_ELEMENTS (winhttp_uri_schemes); i++) ^ gio/win32/gwinhttpvfs.c: In function 'g_winhttp_vfs_get_supported_uri_schemes': gio/win32/gwinhttpvfs.c:210:17: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' for (i = 0; i < G_N_ELEMENTS (winhttp_uri_schemes); i++) ^ --- gio/win32/gwinhttpvfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/win32/gwinhttpvfs.c b/gio/win32/gwinhttpvfs.c index 03feaf983..4d5f51498 100644 --- a/gio/win32/gwinhttpvfs.c +++ b/gio/win32/gwinhttpvfs.c @@ -165,7 +165,7 @@ g_winhttp_vfs_get_file_for_uri (GVfs *vfs, const char *uri) { GWinHttpVfs *winhttp_vfs = G_WINHTTP_VFS (vfs); - int i; + gsize i; GFile *ret = NULL; /* If it matches one of "our" schemes, handle it */ @@ -192,7 +192,7 @@ g_winhttp_vfs_get_supported_uri_schemes (GVfs *vfs) { GWinHttpVfs *winhttp_vfs = G_WINHTTP_VFS (vfs); const gchar * const *wrapped_vfs_uri_schemes = g_vfs_get_supported_uri_schemes (winhttp_vfs->wrapped_vfs); - int i, n; + gsize i, n; const gchar **retval; n = 0;