summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-19 21:47:50 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-19 21:47:50 +0100
commit1662ce104e47f6a1eb0c2004d86b995f74dc4652 (patch)
tree241a47cc206dffa2888f9b343346479a262a7a7e /src/main.c
parent15618fa643867cf0d9c31f327022a22dff78a0cf (diff)
downloadvim-git-1662ce104e47f6a1eb0c2004d86b995f74dc4652.tar.gz
patch 8.0.0494: build failure with older compiler on MS-Windowsv8.0.0494
Problem: Build failure with older compiler on MS-Windows. Solution: Move declaration to start of block.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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;