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

Fixed some subtle (but benign) undefined behaviour with negative bit-shifts

This commit is contained in:
jules 2017-12-19 14:22:39 +00:00
parent beec82b8cb
commit b028f299b8

View file

@ -48,10 +48,10 @@ EdgeTable::EdgeTable (Rectangle<int> area, const Path& path, const AffineTransfo
t += lineStrideElements;
}
auto leftLimit = bounds.getX() << 8;
auto topLimit = bounds.getY() << 8;
auto rightLimit = bounds.getRight() << 8;
auto heightLimit = bounds.getHeight() << 8;
auto leftLimit = bounds.getX() * 256;
auto topLimit = bounds.getY() * 256;
auto rightLimit = bounds.getRight() * 256;
auto heightLimit = bounds.getHeight() * 256;
PathFlatteningIterator iter (path, transform);