mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-31 09:50:05 +02:00
tests: Fix a size_t-to-int32 conversion warning on Windows
Spotted while looking at CI output for the previous commit, and I thought I might as well fix it while I was there. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
198285bda8
commit
374a274c89
@ -138,9 +138,10 @@ thread_func (gpointer user_data)
|
||||
GRand *rand;
|
||||
|
||||
rand = g_rand_new ();
|
||||
g_assert (data->n_locks <= G_MAXINT32);
|
||||
|
||||
for (unsigned int i = 0; i < data->n_iterations; i++)
|
||||
acquire (data, g_rand_int_range (rand, 0, data->n_locks));
|
||||
acquire (data, g_rand_int_range (rand, 0, (gint32) data->n_locks));
|
||||
|
||||
g_rand_free (rand);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user