diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-16 16:01:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-16 16:01:25 +0200 |
commit | 427d51c23f0c83a1e3bc40da072f2ad87f033370 (patch) | |
tree | 5e247cbec44d483acceaf9a8e0c3780495cc3c71 /src/os_mswin.c | |
parent | a50d02d98350a5d876ff0521ad87f3930cf63b5c (diff) | |
download | vim-git-427d51c23f0c83a1e3bc40da072f2ad87f033370.tar.gz |
updated for version 7.3.1208v7.3.1208
Problem: Compiler warnings on MS-Windows.
Solution: Add type cast. Move variable declaration. (Mike Williams)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 3b2ebe453..5af1dee51 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1897,7 +1897,6 @@ Messaging_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) 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, WPARAM wParam, LPARAM lParam) #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); |