Skip to content

Commit d6b4f2d

Browse files
committed
patch 8.0.1687: 64 bit compiler warnings
Problem: 64 bit compiler warnings. Solution: change type, add type cast. (Mike Williams)
1 parent d088240 commit d6b4f2d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/terminal.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3400,7 +3400,7 @@ static VTermParserCallbacks parser_fallbacks = {
34003400
static void *
34013401
vterm_malloc(size_t size, void *data UNUSED)
34023402
{
3403-
return alloc_clear(size);
3403+
return alloc_clear((unsigned) size);
34043404
}
34053405

34063406
static void
@@ -4016,9 +4016,9 @@ get_separator(int text_width, char_u *fname)
40164016
int fname_size;
40174017
char_u *p = fname;
40184018
int i;
4019-
int off;
4019+
size_t off;
40204020

4021-
textline = alloc(width + STRLEN(fname) + 1);
4021+
textline = alloc(width + (int)STRLEN(fname) + 1);
40224022
if (textline == NULL)
40234023
return NULL;
40244024

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1687,
765767
/**/
766768
1686,
767769
/**/

0 commit comments

Comments
 (0)