Browse Source

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

tags/2021-05-28
jules 7 years ago
parent
commit
b028f299b8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_graphics/geometry/juce_EdgeTable.cpp

+ 4
- 4
modules/juce_graphics/geometry/juce_EdgeTable.cpp View File

@@ -48,10 +48,10 @@ EdgeTable::EdgeTable (Rectangle<int> area, const Path& path, const AffineTransfo
t += lineStrideElements; 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); PathFlatteningIterator iter (path, transform);


Loading…
Cancel
Save