From 1662ce104e47f6a1eb0c2004d86b995f74dc4652 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 19 Mar 2017 21:47:50 +0100 Subject: patch 8.0.0494: build failure with older compiler on MS-Windows Problem: Build failure with older compiler on MS-Windows. Solution: Move declaration to start of block. --- src/os_mswin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os_mswin.c') diff --git a/src/os_mswin.c b/src/os_mswin.c index cf8adda76..696847e50 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -2111,7 +2111,7 @@ Messaging_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) char *err = _(e_invexprmsg); size_t len = STRLEN(str) + STRLEN(err) + 5; - res = alloc(len); + res = alloc((unsigned)len); if (res != NULL) vim_snprintf((char *)res, len, "%s: \"%s\"", err, str); reply.dwData = COPYDATA_ERROR_RESULT; -- cgit v1.2.1