mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
8eae303da0
commit
d7ddf66938
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user