1
0
forked from aniani/vim

patch 8.1.0396: another compiler warning on 64-bit MS-Windows

Problem:    Another compiler warning on 64-bit MS-Windows.
Solution:   Add type cast. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2018-09-16 15:14:18 +02:00
parent 6e272acc82
commit 42c63356d7
2 changed files with 3 additions and 1 deletions

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
396,
/**/ /**/
395, 395,
/**/ /**/

View File

@@ -51,7 +51,7 @@ int xdl_emit_diffrec(char const *rec, long size, char const *pre, long psize,
mb[1].size = size; mb[1].size = size;
if (size > 0 && rec[size - 1] != '\n') { if (size > 0 && rec[size - 1] != '\n') {
mb[2].ptr = (char *) "\n\\ No newline at end of file\n"; mb[2].ptr = (char *) "\n\\ No newline at end of file\n";
mb[2].size = strlen(mb[2].ptr); mb[2].size = (long)strlen(mb[2].ptr);
i++; i++;
} }
if (ecb->outf(ecb->priv, mb, i) < 0) { if (ecb->outf(ecb->priv, mb, i) < 0) {