Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Sep 15, 2024
1 parent dbdedb1 commit 75da6b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bin/exrmetrics/exrmetrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ copyTiled (TiledInputPart& in, TiledOutputPart& out)
case RIPMAP_LEVELS:
totalLevels = in.numXLevels () * in.numYLevels ();
break;
case NUM_LEVELMODES: throw runtime_error ("unknown tile mode");
case NUM_LEVELMODES:
default:
throw runtime_error ("unknown tile mode");
}

vector<vector<vector<char>>> pixelData (totalLevels);
Expand Down Expand Up @@ -314,7 +316,7 @@ copyDeepScanLine (DeepScanLineInputPart& in, DeepScanLineOutputPart& out)
int samplesize = pixelTypeSize (i.channel ().type);
sampleData[channelNumber].resize (samplesize * totalSamples);
int offset = 0;
for (int p = 0; p < numPixels; ++p)
for (uint64_t p = 0; p < numPixels; ++p)
{
pixelPtrs[channelNumber][p] =
sampleData[channelNumber].data () + offset * samplesize;
Expand Down Expand Up @@ -426,7 +428,7 @@ copyDeepTiled (DeepTiledInputPart& in, DeepTiledOutputPart& out)
int samplesize = pixelTypeSize (i.channel ().type);
sampleData[channelNumber].resize (samplesize * totalSamples);
int offset = 0;
for (int p = 0; p < numPixels; ++p)
for (uint64_t p = 0; p < numPixels; ++p)
{
pixelPtrs[channelNumber][p] =
sampleData[channelNumber].data () + offset * samplesize;
Expand Down

0 comments on commit 75da6b8

Please sign in to comment.