summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-06 15:00:41 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-06 15:00:41 +0000
commit7e64eb5414c42ee4299703048864d07acb4f78fc (patch)
treed258183b3b2d6087ab315948cf61ed33b47594d7 /tests
parent8a959bb1f4f814d517cebb5c0378957cf598f855 (diff)
[trunk] Remove some easy warnings about sign compare reported by gcc
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/testempty1.c2
-rw-r--r--tests/unit/testempty2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/testempty1.c b/tests/unit/testempty1.c
index f4140f64..a2ae2d2d 100644
--- a/tests/unit/testempty1.c
+++ b/tests/unit/testempty1.c
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
for (i = 0; i < image_width * image_height; i++)
{
- int compno;
+ unsigned int compno;
for(compno = 0; compno < numcomps; compno++)
{
image->comps[compno].data[i] = 0;
diff --git a/tests/unit/testempty2.c b/tests/unit/testempty2.c
index 764b14cc..abafa5b3 100644
--- a/tests/unit/testempty2.c
+++ b/tests/unit/testempty2.c
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
for (i = 0; i < image_width * image_height; i++)
{
- int compno;
+ unsigned int compno;
for(compno = 0; compno < numcomps; compno++)
{
image->comps[compno].data[i] = 0;