Skip to content

Commit

Permalink
Fix a computation overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Hodoul <[email protected]>
  • Loading branch information
hodoulp committed Apr 30, 2020
1 parent a01daf0 commit 7ac22f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenColorIO/MathUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ bool FloatsDiffer(const float expected, const float actual,
}

// Comparing regular floats
int expectedBitsComp, actualBitsComp;
long expectedBitsComp, actualBitsComp;
if (compressDenorms)
{
expectedBitsComp = FloatForCompareCompressDenorms(expectedBits);
Expand Down

0 comments on commit 7ac22f9

Please sign in to comment.