mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
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:
parent
28dcec03e1
commit
5e0bcbf8fe
@ -266,7 +266,7 @@ g_rand_new (void)
|
|||||||
* MinGW-w64 has a wrapper that will emulate rand_s() if it's not in msvcrt
|
* 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)
|
#if (defined(_MSC_VER) && _MSC_VER >= 1400) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
gint i;
|
gsize i;
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (seed); i++)
|
for (i = 0; i < G_N_ELEMENTS (seed); i++)
|
||||||
rand_s (&seed[i]);
|
rand_s (&seed[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user