summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-16 16:01:25 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-16 16:01:25 +0200
commit427d51c23f0c83a1e3bc40da072f2ad87f033370 (patch)
tree5e247cbec44d483acceaf9a8e0c3780495cc3c71 /src/os_mswin.c
parenta50d02d98350a5d876ff0521ad87f3930cf63b5c (diff)
downloadvim-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.c3
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);