[glib: 4/8] Fix signedness warnings in gio/win32/gwinhttpvfs.c




commit 059dc76ae1ffc0d0561cb1e7ce27a0c8d742d60c
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri May 14 13:54:06 2021 +0200

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]