From 3d78af4b000758abe6c6761cbf61f5a66abe4f10 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Thu, 22 Jun 2023 09:25:54 +0200 Subject: Update to latest zig --- clap.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clap.zig b/clap.zig index c4d2cec..420f7c7 100644 --- a/clap.zig +++ b/clap.zig @@ -1138,7 +1138,7 @@ pub fn help( const description_indentation = opt.indent + opt.description_indent + - max_spacing * @boolToInt(!opt.description_on_new_line); + max_spacing * @intFromBool(!opt.description_on_new_line); var first_paramter: bool = true; for (params) |param| { @@ -1266,7 +1266,7 @@ fn DescriptionWriter(comptime UnderlyingWriter: type) type { debug.assert(word.len != 0); var first_word = writer.printed_chars <= writer.indentation; - const chars_to_write = word.len + @boolToInt(!first_word); + const chars_to_write = word.len + @intFromBool(!first_word); if (chars_to_write + writer.printed_chars > writer.max_width) { // If the word does not fit on this line, then we insert a new line and print // it on that line. The only exception to this is if this was the first word. -- cgit v1.2.3