zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1d1193aa7b015174276b01ae17c68ca4271a0e1e (tree)
parent 3109e77474f429c2399c4b835047e7fbd2aee130
Author: Nguyen Gia Huy <dev@k4fyred.com>
Date:   Tue, 30 Jun 2026 02:23:11 +0000

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

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

Diffstat:
Mlib/std/math.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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