Skip to content

Commit 4ad3b2b

Browse files
committed
patch 8.0.1018: warnings from 64-bit compiler
Problem: Warnings from 64-bit compiler. (Christian Brabandt) Solution: Add type casts.
1 parent dde6034 commit 4ad3b2b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/terminal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +1281,8 @@ term_paste_register(int prev_c UNUSED)
12811281
WCHAR *ret = NULL;
12821282
int length = 0;
12831283

1284-
MultiByteToWideChar_alloc(enc_codepage, 0, (char*)s, STRLEN(s),
1285-
&ret, &length);
1284+
MultiByteToWideChar_alloc(enc_codepage, 0, (char *)s,
1285+
(int)STRLEN(s), &ret, &length);
12861286
if (ret != NULL)
12871287
{
12881288
WideCharToMultiByte_alloc(CP_UTF8, 0,
@@ -1292,7 +1292,7 @@ term_paste_register(int prev_c UNUSED)
12921292
}
12931293
#endif
12941294
channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN,
1295-
s, STRLEN(s), NULL);
1295+
s, (int)STRLEN(s), NULL);
12961296
#ifdef WIN3264
12971297
if (tmp != s)
12981298
vim_free(s);
@@ -1851,7 +1851,7 @@ handle_settermprop(
18511851
int length = 0;
18521852

18531853
MultiByteToWideChar_alloc(CP_UTF8, 0,
1854-
(char*)value->string, STRLEN(value->string),
1854+
(char*)value->string, (int)STRLEN(value->string),
18551855
&ret, &length);
18561856
if (ret != NULL)
18571857
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1018,
772774
/**/
773775
1017,
774776
/**/

0 commit comments

Comments
 (0)