Files
zig/lib/std
Hila Friedman bfd2cc5a3f even tighter return type for std.math.sign (#31485)
The code in #31475 does not return the "smallest integer type that fits possible values" for very small integer types, namely `u0`, `i0`, and `i1` - which all end up with a return type one bit too long. Fixed in this commit.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31485
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Hila Friedman <red.black.liquorice@gmail.com>
Co-committed-by: Hila Friedman <red.black.liquorice@gmail.com>
2026-03-17 02:10:27 +01:00
..
2026-03-10 10:38:50 +00:00
2026-03-14 06:06:03 +01:00
2026-02-11 23:37:31 +01:00
2026-03-10 10:38:50 +00:00
2026-02-13 17:58:09 -05:00
2026-03-10 10:38:50 +00:00
2026-03-10 10:26:07 +00:00
2026-03-10 10:38:50 +00:00
2026-03-10 10:26:14 +00:00
2026-02-11 23:37:31 +01:00
2026-03-09 03:19:11 +01:00
2026-02-05 16:50:41 -08:00
2026-03-12 17:44:03 -04:00