7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-01-22 04:32:40 +00:00
kicad/libs
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
..
core Move thread pool into true singleton 2025-01-09 09:03:08 -08:00
kimath Fix missing display pads on MacOS 2025-01-21 20:05:25 -08:00
kinng Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiplatform Build on MSYS2: use shobjidl.h, instead of shobjidl_core.h 2025-01-16 09:59:12 +01:00
sexpr Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
CMakeLists.txt ADDED: A new IPC API based on protobuf and nng 2024-04-02 19:34:36 -04:00