aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-07-14 22:15:15 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-07-14 22:16:44 +0200
commit78f36fcf8c37bd51d81e9cf17de588a704a29769 (patch)
treeda7ab459b0f26830a08e4416cea53498b4f3dec8
parent47d53d66bdcf1df1688c9af6999156a6c97f5aa7 (diff)
downloadrneovim-78f36fcf8c37bd51d81e9cf17de588a704a29769.tar.gz
rneovim-78f36fcf8c37bd51d81e9cf17de588a704a29769.tar.bz2
rneovim-78f36fcf8c37bd51d81e9cf17de588a704a29769.zip
PVS/V1028: cast operands, not the result #10508
fix #10508
-rw-r--r--src/nvim/ops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 8dcb78b496..828a8fac46 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -5490,9 +5490,10 @@ void cursor_pos_info(dict_T *dict)
if (l_VIsual_active) {
if (l_VIsual_mode == Ctrl_V && curwin->w_curswant < MAXCOL) {
getvcols(curwin, &min_pos, &max_pos, &min_pos.col, &max_pos.col);
- int64_t varargs;
- STRICT_SUB(oparg.end_vcol, oparg.start_vcol + 1, &varargs ,int64_t);
- vim_snprintf((char *)buf1, sizeof(buf1), _("%" PRId64 " Cols; "), varargs);
+ int64_t cols;
+ STRICT_SUB(oparg.end_vcol + 1, oparg.start_vcol, &cols, int64_t);
+ vim_snprintf((char *)buf1, sizeof(buf1), _("%" PRId64 " Cols; "),
+ cols);
} else {
buf1[0] = NUL;
}