pvs/v502: use explicit ternary in for-loop

This commit is contained in:
Jan Edmund Lazo
2020-03-15 16:18:08 -04:00
parent 63fc0e1d1c
commit 36326436f7

View File

@@ -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 // 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) { if (round > 0) {
// After checking that the value is valid: set defaults // After checking that the value is valid: set defaults
for (i = 0; i < entries; i++) { for (i = 0; i < entries; i++) {