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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user