mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +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.