aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Engestrom2018-01-26 05:05:28 -0600
committerEric Engestrom2018-01-29 09:41:52 -0600
commit256cdc02a89a6ad51f9ba7bebc6d1ade20f8bfa8 (patch)
treeb066d272219de5b8b94e264a4266742ce3aa95ca /tests
parent80f33f4529710f5a24583ab5189d00cc7cb0d62b (diff)
downloadexternal-libdrm-256cdc02a89a6ad51f9ba7bebc6d1ade20f8bfa8.tar.gz
external-libdrm-256cdc02a89a6ad51f9ba7bebc6d1ade20f8bfa8.tar.xz
external-libdrm-256cdc02a89a6ad51f9ba7bebc6d1ade20f8bfa8.zip
tests/util: fix signed/unsigned comparisons
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/util/pattern.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index 00b08a8c..095eadf2 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -549,7 +549,6 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
549#ifdef HAVE_CAIRO 549#ifdef HAVE_CAIRO
550 cairo_surface_t *surface; 550 cairo_surface_t *surface;
551 cairo_t *cr; 551 cairo_t *cr;
552 int x, y;
553 cairo_format_t cairo_format; 552 cairo_format_t cairo_format;
554 553
555 /* we can ignore the order of R,G,B channels */ 554 /* we can ignore the order of R,G,B channels */
@@ -576,8 +575,8 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
576 cairo_surface_destroy(surface); 575 cairo_surface_destroy(surface);
577 576
578 cairo_set_line_cap(cr, CAIRO_LINE_CAP_SQUARE); 577 cairo_set_line_cap(cr, CAIRO_LINE_CAP_SQUARE);
579 for (x = 0; x < width; x += 250) 578 for (unsigned x = 0; x < width; x += 250)
580 for (y = 0; y < height; y += 250) { 579 for (unsigned y = 0; y < height; y += 250) {
581 char buf[64]; 580 char buf[64];
582 581
583 cairo_move_to(cr, x, y - 20); 582 cairo_move_to(cr, x, y - 20);