Fixing signedness in glib/gprimes.c

glib/gprimes.c: In function ‘g_spaced_primes_closest’:
glib/gprimes.c:91:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ [-Werror=sign-compare]
   for (i = 0; i < G_N_ELEMENTS (g_primes); i++)
                 ^
This commit is contained in:
Emmanuel Fleury 2019-02-03 19:09:18 +01:00
parent 8eae303da0
commit d7ddf66938

View File

@ -86,7 +86,7 @@ static const guint g_primes[] =
guint
g_spaced_primes_closest (guint num)
{
gint i;
gsize i;
for (i = 0; i < G_N_ELEMENTS (g_primes); i++)
if (g_primes[i] > num)