diff --git a/tests/testglib.c b/tests/testglib.c index 926010e5d..071afdc1d 100644 --- a/tests/testglib.c +++ b/tests/testglib.c @@ -299,11 +299,11 @@ gnode_test (void) for (i = 0; i < g_node_n_children (node_B); i++) { node = g_node_nth_child (node_B, i); - g_assert (P2C (node->data) == ('C' + i)); + g_assert (P2C (node->data) == (gchar) ('C' + i)); } for (i = 0; i < g_node_n_children (node_G); i++) - g_assert (g_node_child_position (node_G, g_node_nth_child (node_G, i)) == i); + g_assert (g_node_child_position (node_G, g_node_nth_child (node_G, i)) == (gint) i); /* we have built: A * / \ @@ -1313,7 +1313,7 @@ test_arrays (void) for (i = 0; i < 10000; i++) g_array_append_val (garray, i); for (i = 0; i < 10000; i++) - if (g_array_index (garray, gint, i) != i) + if (g_array_index (garray, gint, i) != (gint) i) g_error ("failure: %d ( %d )", g_array_index (garray, gint, i), i); g_array_free (garray, TRUE); @@ -1321,7 +1321,7 @@ test_arrays (void) for (i = 0; i < 100; i++) g_array_prepend_val (garray, i); for (i = 0; i < 100; i++) - if (g_array_index (garray, gint, i) != (100 - i - 1)) + if (g_array_index (garray, gint, i) != (gint) (100 - i - 1)) g_error ("failure: %d ( %d )", g_array_index (garray, gint, i), 100 - i - 1); g_array_free (garray, TRUE); }