mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
When a floating-point value with no fractional part is shoved into an integer type we must check whether it fits or not before calling `@floatToInt` as the builtin panics in case of overflow. Catch the error and bubble it up to the caller.
3140 lines
115 KiB
3140 lines
115 KiB