Mercurial > vim
changeset 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 | 0a7890c55b1d |
children | 39fd92e26708 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -1281,8 +1281,8 @@ term_paste_register(int prev_c UNUSED) WCHAR *ret = NULL; int length = 0; - MultiByteToWideChar_alloc(enc_codepage, 0, (char*)s, STRLEN(s), - &ret, &length); + MultiByteToWideChar_alloc(enc_codepage, 0, (char *)s, + (int)STRLEN(s), &ret, &length); if (ret != NULL) { WideCharToMultiByte_alloc(CP_UTF8, 0, @@ -1292,7 +1292,7 @@ term_paste_register(int prev_c UNUSED) } #endif channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN, - s, STRLEN(s), NULL); + s, (int)STRLEN(s), NULL); #ifdef WIN3264 if (tmp != s) vim_free(s); @@ -1851,7 +1851,7 @@ handle_settermprop( int length = 0; MultiByteToWideChar_alloc(CP_UTF8, 0, - (char*)value->string, STRLEN(value->string), + (char*)value->string, (int)STRLEN(value->string), &ret, &length); if (ret != NULL) {