mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-02 07:49:22 +03:00
bfd2cc5a3f
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>