Fix signedness warning in glib/gstring.c

glib/gstring.c: In function ‘g_string_replace’:
glib/gstring.c:998:13: warning: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
  998 |       if (n == limit)
      |             ^~
This commit is contained in:
Emmanuel Fleury 2021-02-21 10:15:19 +01:00
parent 7a0bc25792
commit 8ad4f752b1

View File

@ -978,7 +978,7 @@ g_string_replace (GString *string,
{ {
gsize f_len, r_len, pos; gsize f_len, r_len, pos;
gchar *cur, *next; gchar *cur, *next;
gint n = 0; guint n = 0;
g_return_val_if_fail (string != NULL, 0); g_return_val_if_fail (string != NULL, 0);
g_return_val_if_fail (find != NULL, 0); g_return_val_if_fail (find != NULL, 0);