summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-07 21:17:57 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-07 21:17:57 +0200
commit116a0f800c6a62e29c5af832df092507f1355c68 (patch)
treec8a4d81c4701a385a4c09ed55d245ea849ea9b9c /src/message.c
parent6d87e9e1c6a580609d48d4aa54a20b26b10c5b77 (diff)
downloadvim-git-116a0f800c6a62e29c5af832df092507f1355c68.tar.gz
patch 8.0.0888: compiler warnings with 64 bit buildv8.0.0888
Problem: Compiler warnings with 64 bit build. Solution: Add type cast of change the type. (Mike Williams)
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index e548fc0c9..62e6bfe1e 100644
--- a/src/message.c
+++ b/src/message.c
@@ -2639,7 +2639,7 @@ msg_puts_printf(char_u *str, int maxlen)
# if defined(FEAT_MBYTE) && !defined(FEAT_GUI_MSWIN)
if (enc_codepage >= 0 && (int)GetConsoleCP() != enc_codepage)
{
- int inlen = STRLEN(str);
+ int inlen = (int)STRLEN(str);
int outlen;
WCHAR *widestr = (WCHAR *)enc_to_utf16(str, &inlen);