Mercurial > vim
changeset 4926:784e342ddcae v7.3.1208
updated for version 7.3.1208
Problem: Compiler warnings on MS-Windows.
Solution: Add type cast. Move variable declaration. (Mike Williams)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 16 Jun 2013 16:01:25 +0200 |
parents | cf776f1374d3 |
children | 8517a44f550b |
files | src/option.c src/os_mswin.c src/version.c |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -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;
--- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1897,7 +1897,6 @@ Messaging_WndProc(HWND hwnd, UINT msg, W HWND sender = (HWND)wParam; COPYDATASTRUCT reply; char_u *res; - char_u winstr[30]; int retval; char_u *str; char_u *tofree; @@ -1970,6 +1969,8 @@ Messaging_WndProc(HWND hwnd, UINT msg, W #ifdef FEAT_AUTOCMD else if (data->dwData == COPYDATA_REPLY) { + char_u winstr[30]; + sprintf((char *)winstr, PRINTF_HEX_LONG_U, (long_u)sender); apply_autocmds(EVENT_REMOTEREPLY, winstr, str, TRUE, curbuf);