1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Changed the way isPositiveAndBelow is written to avoid needing to cast the second parameter to an int

This commit is contained in:
jules 2017-09-27 12:24:02 +01:00
parent 5b8cf6b932
commit 27a6903cac
13 changed files with 45 additions and 49 deletions

View file

@ -572,7 +572,7 @@ void EdgeTable::intersectWithEdgeTableLine (const int y, const int* const otherL
lastX = nextX;
const int nextLevel = (level1 * (level2 + 1)) >> 8;
jassert (isPositiveAndBelow (nextLevel, (int) 256));
jassert (isPositiveAndBelow (nextLevel, 256));
if (nextLevel != lastLevel)
{

View file

@ -129,7 +129,7 @@ public:
while (--numPoints >= 0)
{
const int level = *++line;
jassert (isPositiveAndBelow (level, (int) 256));
jassert (isPositiveAndBelow (level, 256));
const int endX = *++line;
jassert (endX >= x);
const int endOfRun = (endX >> 8);