Skip to content

Commit

Permalink
apply suggested for for #262
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhillman committed Jul 12, 2019
1 parent 4c146c5 commit 9e9e461
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OpenEXR/IlmImf/ImfInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
//
//-----------------------------------------------------------------------------

#include "ImfCheckedArithmetic.h"
#include "ImfInputFile.h"
#include "ImfScanLineInputFile.h"
#include "ImfTiledInputFile.h"
Expand Down Expand Up @@ -679,8 +680,9 @@ InputFile::setFrameBuffer (const FrameBuffer &frameBuffer)
_data->cachedBuffer = new FrameBuffer();
_data->offset = dataWindow.min.x;

int tileRowSize = (dataWindow.max.x - dataWindow.min.x + 1) *
_data->tFile->tileYSize();
unsigned int tileRowSize =
uiMult(dataWindow.max.x - dataWindow.min.x + 1U,
_data->tFile->tileYSize());

for (FrameBuffer::ConstIterator k = frameBuffer.begin();
k != frameBuffer.end();
Expand Down

0 comments on commit 9e9e461

Please sign in to comment.