Fix several signedness warnings in glib/tests/timer.c

glib/tests/timer.c: In function ‘test_timeval_from_iso8601’:
glib/tests/timer.c:220:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  220 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
      |                 ^
glib/tests/timer.c: In function ‘test_timeval_to_iso8601’:
glib/tests/timer.c:260:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  260 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-14 13:42:41 +01:00
parent 4c1b068657
commit 766e6325ac

View File

@ -208,7 +208,7 @@ test_timeval_from_iso8601 (void)
};
GTimeVal out;
gboolean success;
gint i;
gsize i;
/* Always run in UTC so the comparisons of parsed values are valid. */
if (!g_setenv ("TZ", "UTC", TRUE))
@ -250,7 +250,7 @@ test_timeval_to_iso8601 (void)
{ { 657454877, 0 }, "1990-11-01T10:21:17Z" },
{ { 17, 123400 }, "1970-01-01T00:00:17.123400Z" }
};
gint i;
gsize i;
gchar *out;
GTimeVal val;
gboolean ret;