mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 10:13:53 -06:00
`(gcd -2147483648 0)` gave 2147483647 (the divisor clamped to the largest integer), and `atoi` cast its digits with `as i32`, so "99999999999" gave 1215752191 and "99999999999999999999" gave 0. They now follow what the reader, `fix` and JSON inputs already do with a whole number that doesn't fit 32 bits: it is a real. `gcd` gives 2147483648.0 for its one such result; `atoi` gives the real `atof` reads from the digits, the number the reader makes of them. Results that fit are the same integers as before. Integer arithmetic still wraps. Part of #1933. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>