comparison src/terminal.c @ 12277:8b453c1299f7 v8.0.1018

patch 8.0.1018: warnings from 64-bit compiler commit https://github.com/vim/vim/commit/4ad3b2b588f0f591dcc53096c46ec1b5e80af49f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 30 15:57:33 2017 +0200 patch 8.0.1018: warnings from 64-bit compiler Problem: Warnings from 64-bit compiler. (Christian Brabandt) Solution: Add type casts.
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Aug 2017 16:00:04 +0200
parents e3bde71afff0
children e1f44e4afe67
comparison
equal deleted inserted replaced
12276:0a7890c55b1d 12277:8b453c1299f7
1279 if (!enc_utf8 && enc_codepage > 0) 1279 if (!enc_utf8 && enc_codepage > 0)
1280 { 1280 {
1281 WCHAR *ret = NULL; 1281 WCHAR *ret = NULL;
1282 int length = 0; 1282 int length = 0;
1283 1283
1284 MultiByteToWideChar_alloc(enc_codepage, 0, (char*)s, STRLEN(s), 1284 MultiByteToWideChar_alloc(enc_codepage, 0, (char *)s,
1285 &ret, &length); 1285 (int)STRLEN(s), &ret, &length);
1286 if (ret != NULL) 1286 if (ret != NULL)
1287 { 1287 {
1288 WideCharToMultiByte_alloc(CP_UTF8, 0, 1288 WideCharToMultiByte_alloc(CP_UTF8, 0,
1289 ret, length, (char **)&s, &length, 0, 0); 1289 ret, length, (char **)&s, &length, 0, 0);
1290 vim_free(ret); 1290 vim_free(ret);
1291 } 1291 }
1292 } 1292 }
1293 #endif 1293 #endif
1294 channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN, 1294 channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN,
1295 s, STRLEN(s), NULL); 1295 s, (int)STRLEN(s), NULL);
1296 #ifdef WIN3264 1296 #ifdef WIN3264
1297 if (tmp != s) 1297 if (tmp != s)
1298 vim_free(s); 1298 vim_free(s);
1299 #endif 1299 #endif
1300 1300
1849 { 1849 {
1850 WCHAR *ret = NULL; 1850 WCHAR *ret = NULL;
1851 int length = 0; 1851 int length = 0;
1852 1852
1853 MultiByteToWideChar_alloc(CP_UTF8, 0, 1853 MultiByteToWideChar_alloc(CP_UTF8, 0,
1854 (char*)value->string, STRLEN(value->string), 1854 (char*)value->string, (int)STRLEN(value->string),
1855 &ret, &length); 1855 &ret, &length);
1856 if (ret != NULL) 1856 if (ret != NULL)
1857 { 1857 {
1858 WideCharToMultiByte_alloc(enc_codepage, 0, 1858 WideCharToMultiByte_alloc(enc_codepage, 0,
1859 ret, length, (char**)&term->tl_title, 1859 ret, length, (char**)&term->tl_title,