mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-11 23:23:47 +02: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:
parent
c3388932fd
commit
f5b2b8132d
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user