diff options
Diffstat (limited to 'clap')
| -rw-r--r-- | clap/codepoint_counting_writer.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | fn drain(w: *std.Io.Writer, data: []const []const u8, splat: usize) std.Io.Writer.Error!usize { | 19 | fn drain(w: *std.Io.Writer, data: []const []const u8, splat: usize) std.Io.Writer.Error!usize { |
| 20 | const self: *Self = @fieldParentPtr("interface", w); | 20 | const self: *Self = @alignCast(@fieldParentPtr("interface", w)); |
| 21 | var n_bytes_written: usize = 0; | 21 | var n_bytes_written: usize = 0; |
| 22 | var i: usize = 0; | 22 | var i: usize = 0; |
| 23 | 23 | ||