0
0
mirror of https://github.com/vim/vim.git synced 2025-09-04 21:33:48 -04:00

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 (opt_idx >= 0)
{ {
#if !defined(HAVE_AVAIL_MEM) && !defined(HAVE_TOTAL_MEM) #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) || (long)options[opt_idx].def_val[VI_DEFAULT] == 0L)
#endif #endif
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)n; options[opt_idx].def_val[VI_DEFAULT] = (char_u *)n;

View File

@ -1897,7 +1897,6 @@ Messaging_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
HWND sender = (HWND)wParam; HWND sender = (HWND)wParam;
COPYDATASTRUCT reply; COPYDATASTRUCT reply;
char_u *res; char_u *res;
char_u winstr[30];
int retval; int retval;
char_u *str; char_u *str;
char_u *tofree; char_u *tofree;
@ -1970,6 +1969,8 @@ Messaging_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
#ifdef FEAT_AUTOCMD #ifdef FEAT_AUTOCMD
else if (data->dwData == COPYDATA_REPLY) else if (data->dwData == COPYDATA_REPLY)
{ {
char_u winstr[30];
sprintf((char *)winstr, PRINTF_HEX_LONG_U, (long_u)sender); sprintf((char *)winstr, PRINTF_HEX_LONG_U, (long_u)sender);
apply_autocmds(EVENT_REMOTEREPLY, winstr, str, apply_autocmds(EVENT_REMOTEREPLY, winstr, str,
TRUE, curbuf); TRUE, curbuf);

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1208,
/**/ /**/
1207, 1207,
/**/ /**/