diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-16 11:23:22 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-16 11:23:22 +0300 |
commit | 95cc2507c996f3564498382881f116899d43b000 (patch) | |
tree | 8e8b7b1323828580609cf80dcd7a6839189270dd | |
parent | fc1ebb060e8364a947bc93ab578179a23aa9b81d (diff) | |
download | rneovim-95cc2507c996f3564498382881f116899d43b000.tar.gz rneovim-95cc2507c996f3564498382881f116899d43b000.tar.bz2 rneovim-95cc2507c996f3564498382881f116899d43b000.zip |
ops: Fix PVS/V560: pre may not be zero as that was already checked
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 8e272e475c..c4790653b8 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4744,7 +4744,7 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1) vim_snprintf((char *)buf2, ARRAY_SIZE(buf2), "%" PRIu64, (uint64_t)n); } else if (pre == '0') { vim_snprintf((char *)buf2, ARRAY_SIZE(buf2), "%" PRIo64, (uint64_t)n); - } else if (pre && hexupper) { + } else if (hexupper) { vim_snprintf((char *)buf2, ARRAY_SIZE(buf2), "%" PRIX64, (uint64_t)n); } else { vim_snprintf((char *)buf2, ARRAY_SIZE(buf2), "%" PRIx64, (uint64_t)n); |