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/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 66db3ebc7..78b61228a 100644 --- a/src/main.c +++ b/src/main.c @@ -4194,7 +4194,7 @@ sendToLocalVim(char_u *cmd, int asExpr, char_u **result) size_t len = STRLEN(cmd) + STRLEN(err) + 5; char_u *msg; - msg = alloc(len); + msg = alloc((unsigned)len); if (msg != NULL) vim_snprintf((char *)msg, len, "%s: \"%s\"", err, cmd); *result = msg; -- cgit v1.2.1