0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0919: compiler warnings

Problem:    Compiler warnings.
Solution:   Add type casts. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2019-02-14 20:55:09 +01:00
parent 9b5c1fcdea
commit 0f77d6afd5
3 changed files with 5 additions and 3 deletions

View File

@@ -2938,7 +2938,7 @@ do_more_prompt(int typed_char)
mch_errmsg(char *str) mch_errmsg(char *str)
{ {
#if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN)
int len = STRLEN(str); int len = (int)STRLEN(str);
DWORD nwrite = 0; DWORD nwrite = 0;
DWORD mode = 0; DWORD mode = 0;
HANDLE h = GetStdHandle(STD_ERROR_HANDLE); HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
@@ -3026,7 +3026,7 @@ mch_errmsg(char *str)
mch_msg(char *str) mch_msg(char *str)
{ {
#if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN)
int len = STRLEN(str); int len = (int)STRLEN(str);
DWORD nwrite = 0; DWORD nwrite = 0;
DWORD mode; DWORD mode;
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);

View File

@@ -4800,7 +4800,7 @@ addstate_here(
emsg(_(e_maxmempat)); emsg(_(e_maxmempat));
return NULL; return NULL;
} }
newl = (nfa_thread_T *)alloc(newsize); newl = (nfa_thread_T *)alloc((int)newsize);
if (newl == NULL) if (newl == NULL)
return NULL; return NULL;
l->len = newlen; l->len = newlen;

View File

@@ -783,6 +783,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 */
/**/
919,
/**/ /**/
918, 918,
/**/ /**/