summaryrefslogtreecommitdiff
path: root/src/version.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-02-03 13:33:03 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-03 13:33:03 +0000
commit5411910c77cba85212963a2fb71d8c71f8a5d203 (patch)
tree02b93fc9c88ba737b0d94785790effa062de465b /src/version.c
parent6e1d31e9e3ca42cb883abca198f011dc6f4ceb14 (diff)
downloadvim-git-5411910c77cba85212963a2fb71d8c71f8a5d203.tar.gz
patch 8.2.4289: warnings reported by MSVCv8.2.4289
Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index cc4e7d29b..8ea43b54f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4289,
+/**/
4288,
/**/
4287,
@@ -9468,7 +9470,7 @@ list_in_columns(char_u **items, int size, int current)
// The rightmost column doesn't need a separator.
// Sacrifice it to fit in one more column if possible.
ncol = (int) (Columns + 1) / width;
- nrow = item_count / ncol + (item_count % ncol ? 1 : 0);
+ nrow = item_count / ncol + ((item_count % ncol) ? 1 : 0);
// "i" counts columns then rows. "idx" counts rows then columns.
for (i = 0; !got_int && i < nrow * ncol; ++i)