From ad21f02936e4ec00c3ec21c95f09a0430bd23698 Mon Sep 17 00:00:00 2001 From: Kimball Thurston Date: Thu, 25 Jul 2019 21:11:01 +1200 Subject: [PATCH] Fix another set of warnings that crept in during previous fix merges Signed-off-by: Kimball Thurston --- OpenEXR/IlmImfTest/testInputPart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenEXR/IlmImfTest/testInputPart.cpp b/OpenEXR/IlmImfTest/testInputPart.cpp index b53b158744..b398a1f554 100644 --- a/OpenEXR/IlmImfTest/testInputPart.cpp +++ b/OpenEXR/IlmImfTest/testInputPart.cpp @@ -98,7 +98,7 @@ void fillPixels (Array2D& sampleCount, Array2D &ph, int width, for (int x = 0; x < width; ++x) { ph[y][x] = new T[sampleCount[y][x]]; - for (int i = 0; i < sampleCount[y][x]; i++) + for (unsigned int i = 0; i < sampleCount[y][x]; i++) { // // We do this because half cannot store number bigger than 2048 exactly. @@ -181,7 +181,7 @@ bool checkPixels (Array2D& sampleCount, Array2D &ph, for (int y = ly; y <= ry; ++y) for (int x = lx; x <= rx; ++x) { - for (int i = 0; i < sampleCount[y][x]; i++) + for (unsigned int i = 0; i < sampleCount[y][x]; i++) { if (ph[y][x][i] != (y * width + x) % 2049) {