aboutsummaryrefslogtreecommitdiff
path: root/src/deps/zig-clap/clap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/deps/zig-clap/clap.zig')
-rw-r--r--src/deps/zig-clap/clap.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deps/zig-clap/clap.zig b/src/deps/zig-clap/clap.zig
index 68cd2451c..37cc4814e 100644
--- a/src/deps/zig-clap/clap.zig
+++ b/src/deps/zig-clap/clap.zig
@@ -343,7 +343,7 @@ pub fn helpFull(
var cs = io.countingWriter(io.null_writer);
try printParam(cs.writer(), Id, param, Error, context, valueText);
if (res < cs.bytes_written)
- res = @intCast(usize, cs.bytes_written);
+ res = @as(usize, @intCast(cs.bytes_written));
}
break :blk res;
@@ -356,7 +356,7 @@ pub fn helpFull(
var cs = io.countingWriter(stream);
try stream.print("\t", .{});
try printParam(cs.writer(), Id, param, Error, context, valueText);
- try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, cs.bytes_written));
+ try stream.writeByteNTimes(' ', max_spacing - @as(usize, @intCast(cs.bytes_written)));
try stream.print("\t{s}\n", .{try helpText(context, param)});
}
}
@@ -482,7 +482,7 @@ pub fn usageFull(
// Seems the zig compiler is being a little wierd. I doesn't allow me to write
// @as(*const [1]u8, s) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
- const name = if (param.names.short) |*s| @ptrCast([*]const u8, s)[0..1] else param.names.long orelse {
+ const name = if (param.names.short) |*s| @as([*]const u8, @ptrCast(s))[0..1] else param.names.long orelse {
positional = param;
continue;
};