authorgravatar for dev@k4fyred.comNguyen Gia Huy <dev@k4fyred.com> 2026-06-30 02:23:11+00:00
committergravatar for dev@k4fyred.comNguyen Gia Huy <dev@k4fyred.com> 2026-06-30 02:24:16+00:00
log1d1193aa7b015174276b01ae17c68ca4271a0e1e
tree231e39cfba85a4a0352d7569a4c78c4b167d1af7
parent3109e77474f429c2399c4b835047e7fbd2aee130
signaturelock-open Commit is signed but in an unrecognized format.

std.math: Mark `signExtend` as `pub`

Introduced in https://codeberg.org/ziglang/zig/commit/b636906fb640a12107cd21637c2af67b8e9d6ebd

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/math.zig+1-1
...@@ -1879,7 +1879,7 @@ test sign {...@@ -1879,7 +1879,7 @@ test sign {
1879/// Increases the bit width of an integer by copying the most significant bit.1879/// Increases the bit width of an integer by copying the most significant bit.
1880/// This results in the input and output having the same arithmetic value, when1880/// This results in the input and output having the same arithmetic value, when
1881/// interpreted as two's complement integers.1881/// interpreted as two's complement integers.
1882fn signExtend(To: type, n: anytype) To {1882pub fn signExtend(To: type, n: anytype) To {
1883 const From = @TypeOf(n);1883 const From = @TypeOf(n);
1884 if (From == u0) return 0;1884 if (From == u0) return 0;
1885 const FromSigned = @Int(.signed, @typeInfo(From).int.bits);1885 const FromSigned = @Int(.signed, @typeInfo(From).int.bits);