From 36326436f7f6f5c6cf18bc4dc4f66654f07d6c89 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 15 Mar 2020 16:18:08 -0400 Subject: pvs/v502: use explicit ternary in for-loop --- src/nvim/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/option.c b/src/nvim/option.c index 43a4a9fdf9..7582b0dc17 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3668,7 +3668,7 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set) } // first round: check for valid value, second round: assign values - for (round = 0; round <= set ? 1 : 0; round++) { + for (round = 0; round <= (set ? 1 : 0); round++) { if (round > 0) { // After checking that the value is valid: set defaults for (i = 0; i < entries; i++) { -- cgit