From 3ae92228409d82a2c906fafc228b7920d9ff046b Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Tue, 2 Dec 2025 23:47:10 -0800 Subject: fix: enable building on 32-bit platforms Without this change, we get the following error when targeting 32bit platforms (e.g. arm-linux): "@fieldParentPtr increases pointer alignment". --- clap/codepoint_counting_writer.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap/codepoint_counting_writer.zig b/clap/codepoint_counting_writer.zig index 3518d48..39d5666 100644 --- a/clap/codepoint_counting_writer.zig +++ b/clap/codepoint_counting_writer.zig @@ -17,7 +17,7 @@ pub const CodepointCountingWriter = struct { } fn drain(w: *std.Io.Writer, data: []const []const u8, splat: usize) std.Io.Writer.Error!usize { - const self: *Self = @fieldParentPtr("interface", w); + const self: *Self = @alignCast(@fieldParentPtr("interface", w)); var n_bytes_written: usize = 0; var i: usize = 0; -- cgit v1.2.3