summaryrefslogtreecommitdiff
path: root/test/trap-clip.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-08-13 04:47:11 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-08-13 04:47:11 -0400
commita06af40c35ba8b5d9a0688cefc7eb8bd2e31e92d (patch)
tree3620cc600c96098b2c434cf8ff02b10c84238eee /test/trap-clip.c
parent58963a2bf962559d579a84edde9af13d9f51d014 (diff)
[test] Fix warnings in tests on 64-bit systems
Cast argiments from size_t to int. size_t is 64-bit on 64-bit systems, which causes a warning. The actual data should fit 32 bit comfortably.
Diffstat (limited to 'test/trap-clip.c')
-rw-r--r--test/trap-clip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/trap-clip.c b/test/trap-clip.c
index 3737e5a3d..e98d865d3 100644
--- a/test/trap-clip.c
+++ b/test/trap-clip.c
@@ -191,7 +191,7 @@ draw (cairo_t *cr, int width, int height)
pattern_funcs[i] (cr, x, y);
draw_funcs[j] (cr, x, y);
if (cairo_status (cr))
- cairo_test_log ("%d %d HERE!\n", i, j);
+ cairo_test_log ("%d %d HERE!\n", (int)i, (int)j);
cairo_restore (cr);
}
@@ -199,7 +199,7 @@ draw (cairo_t *cr, int width, int height)
}
if (cairo_status (cr) != CAIRO_STATUS_SUCCESS)
- cairo_test_log ("%d %d .HERE!\n", i, j);
+ cairo_test_log ("%d %d .HERE!\n", (int)i, (int)j);
return CAIRO_TEST_SUCCESS;
}