From 1d1193aa7b015174276b01ae17c68ca4271a0e1e Mon Sep 17 00:00:00 2001 From: Nguyen Gia Huy Date: Tue, 30 Jun 2026 02:23:11 +0000 Subject: [PATCH] std.math: Mark `signExtend` as `pub` Introduced in https://codeberg.org/ziglang/zig/commit/b636906fb640a12107cd21637c2af67b8e9d6ebd --- lib/std/math.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/math.zig b/lib/std/math.zig index aec6f03ce0d4d8d7b4407c6be5bf241db47b0371..ec4f47edc1f0ff887ed728ffb636d363e66dfaad 100644 --- 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); -- 2.54.0