summaryrefslogtreecommitdiff
path: root/clap.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2020-08-15 15:23:46 +0200
committerGravatar Jimmi Holst Christensen2020-08-15 15:24:19 +0200
commitddca24a6fd9a7d23d168b2195932a32b92a18b09 (patch)
tree07f9fd75fc032a3a823c86b128e82b47ec53470f /clap.zig
parentCreate FUNDING.yml (diff)
downloadzig-clap-ddca24a6fd9a7d23d168b2195932a32b92a18b09.tar.gz
zig-clap-ddca24a6fd9a7d23d168b2195932a32b92a18b09.tar.xz
zig-clap-ddca24a6fd9a7d23d168b2195932a32b92a18b09.zip
Fix expected type error on 32 bit systems
fixes #23
Diffstat (limited to 'clap.zig')
-rw-r--r--clap.zig4
1 files changed, 2 insertions, 2 deletions
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(
290 var counting_stream = io.countingOutStream(io.null_out_stream); 290 var counting_stream = io.countingOutStream(io.null_out_stream);
291 try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); 291 try printParam(counting_stream.outStream(), Id, param, Error, context, valueText);
292 if (res < counting_stream.bytes_written) 292 if (res < counting_stream.bytes_written)
293 res = counting_stream.bytes_written; 293 res = @intCast(usize, counting_stream.bytes_written);
294 } 294 }
295 295
296 break :blk res; 296 break :blk res;
@@ -303,7 +303,7 @@ pub fn helpFull(
303 var counting_stream = io.countingOutStream(stream); 303 var counting_stream = io.countingOutStream(stream);
304 try stream.print("\t", .{}); 304 try stream.print("\t", .{});
305 try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); 305 try printParam(counting_stream.outStream(), Id, param, Error, context, valueText);
306 try stream.writeByteNTimes(' ', max_spacing - counting_stream.bytes_written); 306 try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, counting_stream.bytes_written));
307 try stream.print("\t{}\n", .{try helpText(context, param)}); 307 try stream.print("\t{}\n", .{try helpText(context, param)});
308 } 308 }
309} 309}