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

"Bryce W. Harrington" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <5A5FB412583EA944A1D0228D52A9C57263A405@sisaex02sj>
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 <[email protected]>
---
 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  -  [email protected]
Open Source Group             -  Samsung Research America

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.