summaryrefslogtreecommitdiff
path: root/clap.zig
diff options
context:
space:
mode:
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}