Fix signedness warning in glib/grand.c

glib/grand.c:271:17: warning: comparison of integer expressions of different signedness: 'gint' {aka 'int'} and 'long long unsigned int'
   for (i = 0; i < G_N_ELEMENTS (seed); i++)
                 ^
This commit is contained in:
Emmanuel Fleury 2021-05-13 15:59:31 +02:00
parent 28dcec03e1
commit 5e0bcbf8fe

View File

@ -266,7 +266,7 @@ g_rand_new (void)
* MinGW-w64 has a wrapper that will emulate rand_s() if it's not in msvcrt
*/
#if (defined(_MSC_VER) && _MSC_VER >= 1400) || defined(__MINGW64_VERSION_MAJOR)
gint i;
gsize i;
for (i = 0; i < G_N_ELEMENTS (seed); i++)
rand_s (&seed[i]);