diff --git a/gio/tests/contexts.c b/gio/tests/contexts.c index c6dc26111..3b64c7622 100644 --- a/gio/tests/contexts.c +++ b/gio/tests/contexts.c @@ -360,7 +360,8 @@ test_context_specific_emit (void) { GThread *threads[N_THREADS]; gboolean exited = FALSE; - guint i, n; + gsize i; + gint k, n; for (i = 0; i < N_THREADS; i++) threads[i] = g_thread_new ("test", test_emit_thread, &observed_values[i]); @@ -368,7 +369,7 @@ test_context_specific_emit (void) /* make changes and ensure that they are observed */ for (n = 0; n < 1000; n++) { - guint64 expiry; + gint64 expiry; /* don't burn CPU forever */ expiry = g_get_monotonic_time () + 10 * G_TIME_SPAN_SECOND; @@ -376,7 +377,7 @@ test_context_specific_emit (void) g_atomic_int_set (¤t_value, n); /* wake them to notice */ - for (i = 0; i < g_test_rand_int_range (1, 5); i++) + for (k = 0; k < g_test_rand_int_range (1, 5); k++) g_context_specific_group_emit (&group, g_signal_lookup ("changed", per_thread_thing_get_type ())); for (i = 0; i < N_THREADS; i++)