0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/math.zig
Jay Petacat 01cc1a5867 std.math.sign: Return smallest integer type that fits possible values
This may be a breaking change for callers that depend on the return type
size being identical to the input. For example, `sign(i32) * i8 + i8`
could now overflow. Callers can add an explicit type annotation to avoid
that problem.
2026-03-12 21:05:22 +01:00

1884 lines
73 KiB