summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-12-11 22:38:36 +0100
committerBram Moolenaar <Bram@vim.org>2015-12-11 22:38:36 +0100
commit35be4534c029148a89ccc41e8e465d793e7ed7c2 (patch)
tree68ccb6a9ed34fd033ebcaa2dbf0e6415fea1cffa /src/option.c
parentb65c749ac5a8a990d53493e3b9677142b1b9e4ce (diff)
downloadvim-35be4534c029148a89ccc41e8e465d793e7ed7c2.zip
patch 7.4.969
Problem: Compiler warnings on Windowx x64 build. Solution: Add type casts. (Mike Williams)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index f8cb1ba7c..3f98f47b8 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3287,8 +3287,8 @@ set_init_1()
if (opt_idx >= 0)
{
#if !defined(HAVE_AVAIL_MEM) && !defined(HAVE_TOTAL_MEM)
- if ((long)options[opt_idx].def_val[VI_DEFAULT] > (long)n
- || (long)options[opt_idx].def_val[VI_DEFAULT] == 0L)
+ if ((long)(long_i)options[opt_idx].def_val[VI_DEFAULT] > (long)n
+ || (long)(long_i)options[opt_idx].def_val[VI_DEFAULT] == 0L)
#endif
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)n;
}