From 116a0f800c6a62e29c5af832df092507f1355c68 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 7 Aug 2017 21:17:57 +0200 Subject: patch 8.0.0888: compiler warnings with 64 bit build Problem: Compiler warnings with 64 bit build. Solution: Add type cast of change the type. (Mike Williams) --- src/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/message.c') 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); -- cgit v1.2.1