From: David Griffith Date: Mon, 20 Aug 2018 15:37:32 +0000 (-0700) Subject: Expand a ternary operation in a printf() to mollify a Clang complaint. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=70983bdf2656be9a19731172a25f853f18e72bf9;p=liskon_frotz.git Expand a ternary operation in a printf() to mollify a Clang complaint. --- diff --git a/src/dumb/dumb_output.c b/src/dumb/dumb_output.c index cd87912..7fdb357 100644 --- a/src/dumb/dumb_output.c +++ b/src/dumb/dumb_output.c @@ -297,8 +297,12 @@ static bool will_print_blank(cell c) static void show_line_prefix(int row, char c) { - if (show_line_numbers) - printf((row == -1) ? ".." : "%02d", (row + 1) % 100); + if (show_line_numbers) { + if (row == -1) + printf(".."); + else + printf("%02d", (row + 1) % 100); + } if (show_line_types) putchar(c); /* Add a separator char (unless there's nothing to separate). */