mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	Fix signedness warning in glib/guri.c
glib/guri.c: In function ‘should_normalize_empty_path’:
glib/guri.c:756:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
  756 |   for (i = 0; i < G_N_ELEMENTS (schemes); ++i)
      |                 ^
			
			
This commit is contained in:
		@@ -752,7 +752,7 @@ static gboolean
 | 
				
			|||||||
should_normalize_empty_path (const char *scheme)
 | 
					should_normalize_empty_path (const char *scheme)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  const char * const schemes[] = { "https", "http", "wss", "ws" };
 | 
					  const char * const schemes[] = { "https", "http", "wss", "ws" };
 | 
				
			||||||
  int i;
 | 
					  gsize i;
 | 
				
			||||||
  for (i = 0; i < G_N_ELEMENTS (schemes); ++i)
 | 
					  for (i = 0; i < G_N_ELEMENTS (schemes); ++i)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      if (!strcmp (schemes[i], scheme))
 | 
					      if (!strcmp (schemes[i], scheme))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user