Skip to content

Commit

Permalink
patch 8.0.1687: 64 bit compiler warnings
Browse files Browse the repository at this point in the history
Problem:    64 bit compiler warnings.
Solution:   change type, add type cast. (Mike Williams)
  • Loading branch information
brammool committed Apr 10, 2018
1 parent d088240 commit d6b4f2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/terminal.c
Expand Up @@ -3400,7 +3400,7 @@ static VTermParserCallbacks parser_fallbacks = {
static void * static void *
vterm_malloc(size_t size, void *data UNUSED) vterm_malloc(size_t size, void *data UNUSED)
{ {
return alloc_clear(size); return alloc_clear((unsigned) size);
} }


static void static void
Expand Down Expand Up @@ -4016,9 +4016,9 @@ get_separator(int text_width, char_u *fname)
int fname_size; int fname_size;
char_u *p = fname; char_u *p = fname;
int i; int i;
int off; size_t off;


textline = alloc(width + STRLEN(fname) + 1); textline = alloc(width + (int)STRLEN(fname) + 1);
if (textline == NULL) if (textline == NULL)
return NULL; return NULL;


Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,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 */
/**/
1687,
/**/ /**/
1686, 1686,
/**/ /**/
Expand Down

0 comments on commit d6b4f2d

Please sign in to comment.