1
0
forked from aniani/vim

updated for version 7.3.1208

Problem:    Compiler warnings on MS-Windows.
Solution:   Add type cast.  Move variable declaration. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2013-06-16 16:01:25 +02:00
parent a50d02d983
commit 427d51c23f
3 changed files with 5 additions and 2 deletions

View File

@@ -3181,7 +3181,7 @@ 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] > n
if ((long)options[opt_idx].def_val[VI_DEFAULT] > (long)n
|| (long)options[opt_idx].def_val[VI_DEFAULT] == 0L)
#endif
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)n;