Skip to content

Commit

Permalink
Fix another set of warnings that crept in during previous fix merges
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Jul 26, 2019
1 parent 7450450 commit e07ef34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenEXR/IlmImfTest/testInputPart.cpp
Expand Up @@ -98,7 +98,7 @@ void fillPixels (Array2D<unsigned int>& sampleCount, Array2D<T*> &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.
Expand Down Expand Up @@ -181,7 +181,7 @@ bool checkPixels (Array2D<unsigned int>& sampleCount, Array2D<T*> &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)
{
Expand Down

0 comments on commit e07ef34

Please sign in to comment.