[cairo] [PATCH 5/7] pdiff: Quell warning about signed/unsigned comparisons

Bryce W. Harrington b.harrington at samsung.com
Tue Jul 2 15:21:46 PDT 2013


perceptualdiff.c:55:19: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
perceptualdiff.c:60:16: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]

Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
 test/pdiff/perceptualdiff.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/pdiff/perceptualdiff.c b/test/pdiff/perceptualdiff.c
index a3a6e80..de98534 100644
--- a/test/pdiff/perceptualdiff.c
+++ b/test/pdiff/perceptualdiff.c
@@ -26,10 +26,10 @@
 
 static bool Yee_Compare(args_t *args)
 {
-    int width_a, height_a, stride_a;
+    unsigned int width_a, height_a, stride_a;
     unsigned char *data_a, *row_a;
     uint32_t *pixel_a;
-    int width_b, height_b, stride_b;
+    unsigned int width_b, height_b, stride_b;
     unsigned char *data_b, *row_b;
     uint32_t *pixel_b;
     unsigned int x, y, dim, pixels_failed;
-- 
1.7.9.5


--
Bryce Harrington
Senior Open Source Developer  -  b.harrington at samsung.com
Open Source Group             -  Samsung Research America



More information about the cairo mailing list