projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f33f4
)
tests/util: fix signed/unsigned comparisons
author
Eric Engestrom
<eric.engestrom@imgtec.com>
Fri, 26 Jan 2018 11:05:28 +0000
(11:05 +0000)
committer
Eric Engestrom
<eric.engestrom@imgtec.com>
Mon, 29 Jan 2018 15:41:52 +0000
(15:41 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
tests/util/pattern.c
patch
|
blob
|
history
diff --git
a/tests/util/pattern.c
b/tests/util/pattern.c
index
00b08a8
..
095eadf
100644
(file)
--- 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,
#ifdef HAVE_CAIRO
cairo_surface_t *surface;
cairo_t *cr;
- int x, y;
cairo_format_t cairo_format;
/* 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,
cairo_surface_destroy(surface);
cairo_set_line_cap(cr, CAIRO_LINE_CAP_SQUARE);
- for (x = 0; x < width; x += 250)
- for (y = 0; y < height; y += 250) {
+ for (
unsigned
x = 0; x < width; x += 250)
+ for (
unsigned
y = 0; y < height; y += 250) {
char buf[64];
cairo_move_to(cr, x, y - 20);