Skip to content

Commit

Permalink
Fix an arithmetic overflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0xC0000054 committed Jan 8, 2021
1 parent a09be55 commit 3a88855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/GmicInputWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace
{
for (int32 j = 0; j < rowCount; j++)
{
const uint8* row = static_cast<const uint8*>(filterRecord->inData) + (j * filterRecord->inRowBytes);
const uint8* row = static_cast<const uint8*>(filterRecord->inData) + (static_cast<int64>(j) * filterRecord->inRowBytes);

err = WriteFile(fileHandle, row, outputStride);

Expand Down

0 comments on commit 3a88855

Please sign in to comment.