7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-01-22 07:54:45 +00:00
kicad/libs/kimath
Seth Hillbrand 0281bfe05e Fix missing display pads on MacOS
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
2025-01-21 20:05:25 -08:00
..
include Add additional handling for arc collisions 2025-01-14 13:08:45 -08:00
src Fix missing display pads on MacOS 2025-01-21 20:05:25 -08:00
CMakeLists.txt Give Clipper1 a Viking funeral 2024-12-23 17:12:09 -08:00
determine_if_point_inside_polygon.odt Refactor all math into a new kimath library 2020-01-07 17:12:59 +00:00