mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-01-22 07:54:45 +00:00
0281bfe05e
The distance from any point in the negative quadrant to std::numeric_limits::max will be larger than std::numeric_limits::max, meaning that if we take the square of this value, we will overflow the extended_type. Overflows are undefined behavior when dealing with signed integers (c.f. C99 §3.4.3/1) so while most compilers retain a positive value, Apple, in release mode, overflows into the sign bit, resulting in a negative number for the squared distance. This prevented us from displaying certain shapes in the negative quadrant on MacOS, only in release mode builds Fixes https://gitlab.com/kicad/code/kicad/-/issues/19424 |
||
---|---|---|
.. | ||
include | ||
src | ||
CMakeLists.txt | ||
determine_if_point_inside_polygon.odt |