From ddca24a6fd9a7d23d168b2195932a32b92a18b09 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Sat, 15 Aug 2020 15:23:46 +0200 Subject: Fix expected type error on 32 bit systems fixes #23 --- clap.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clap.zig') diff --git a/clap.zig b/clap.zig index ff423cc..1711af9 100644 --- a/clap.zig +++ b/clap.zig @@ -290,7 +290,7 @@ pub fn helpFull( var counting_stream = io.countingOutStream(io.null_out_stream); try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); if (res < counting_stream.bytes_written) - res = counting_stream.bytes_written; + res = @intCast(usize, counting_stream.bytes_written); } break :blk res; @@ -303,7 +303,7 @@ pub fn helpFull( var counting_stream = io.countingOutStream(stream); try stream.print("\t", .{}); try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); - try stream.writeByteNTimes(' ', max_spacing - counting_stream.bytes_written); + try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, counting_stream.bytes_written)); try stream.print("\t{}\n", .{try helpText(context, param)}); } } -- cgit v1.2.3