aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-11 10:25:24 +0100
committerGitHub <noreply@github.com>2023-02-11 10:25:24 +0100
commit7224c889e0d5d70b99ae377036baa6377c33a568 (patch)
treedcd43af5075b12db1aae2e1a087bf88599b387ff /src/nvim/ops.c
parentc8c930ea785aa393ebc819139913a9e05f0ccd45 (diff)
downloadrneovim-7224c889e0d5d70b99ae377036baa6377c33a568.tar.gz
rneovim-7224c889e0d5d70b99ae377036baa6377c33a568.tar.bz2
rneovim-7224c889e0d5d70b99ae377036baa6377c33a568.zip
build: enable MSVC level 3 warnings (#21934)
MSVC has 4 different warning levels: 1 (severe), 2 (significant), 3 (production quality) and 4 (informational). Enabling level 3 warnings mostly revealed conversion problems, similar to GCC/clang -Wconversion flag.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 6326130c5a..f5f1a456f6 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -4127,7 +4127,7 @@ int do_join(size_t count, int insert_space, int save_undo, int use_formatoptions
linenr_T lnum = curwin->w_cursor.lnum + t;
colnr_T mincol = (colnr_T)0;
linenr_T lnum_amount = -t;
- long col_amount = (cend - newp - spaces_removed);
+ colnr_T col_amount = (colnr_T)(cend - newp - spaces_removed);
mark_col_adjust(lnum, mincol, lnum_amount, col_amount, spaces_removed);