comparison src/message.c @ 12015:7e704d75a882 v8.0.0888

patch 8.0.0888: compiler warnings with 64 bit build commit https://github.com/vim/vim/commit/116a0f800c6a62e29c5af832df092507f1355c68 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 7 21:17:57 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Mon, 07 Aug 2017 21:30:05 +0200
parents f37815bb7417
children 69af108df70e
comparison
equal deleted inserted replaced
12014:72a274bcae6b 12015:7e704d75a882
2637 mch_settmode(TMODE_COOK); /* handle '\r' and '\n' correctly */ 2637 mch_settmode(TMODE_COOK); /* handle '\r' and '\n' correctly */
2638 2638
2639 # if defined(FEAT_MBYTE) && !defined(FEAT_GUI_MSWIN) 2639 # if defined(FEAT_MBYTE) && !defined(FEAT_GUI_MSWIN)
2640 if (enc_codepage >= 0 && (int)GetConsoleCP() != enc_codepage) 2640 if (enc_codepage >= 0 && (int)GetConsoleCP() != enc_codepage)
2641 { 2641 {
2642 int inlen = STRLEN(str); 2642 int inlen = (int)STRLEN(str);
2643 int outlen; 2643 int outlen;
2644 WCHAR *widestr = (WCHAR *)enc_to_utf16(str, &inlen); 2644 WCHAR *widestr = (WCHAR *)enc_to_utf16(str, &inlen);
2645 2645
2646 if (widestr != NULL) 2646 if (widestr != NULL)
2647 { 2647 {