diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-15 16:18:08 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-13 12:00:30 -0400 |
commit | 36326436f7f6f5c6cf18bc4dc4f66654f07d6c89 (patch) | |
tree | 95d49798316f42cf8e7d191865a661e2397c2b8f /src/nvim/option.c | |
parent | 63fc0e1d1cedcb8e39524e785648d3f98d682f66 (diff) | |
download | rneovim-36326436f7f6f5c6cf18bc4dc4f66654f07d6c89.tar.gz rneovim-36326436f7f6f5c6cf18bc4dc4f66654f07d6c89.tar.bz2 rneovim-36326436f7f6f5c6cf18bc4dc4f66654f07d6c89.zip |
pvs/v502: use explicit ternary in for-loop
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |