# HG changeset patch # User Bram Moolenaar # Date 1550174406 -3600 # Node ID 6733b8b1caf3746c0f49f140f5547ad2d333d4fc # Parent 5798cba2079ad5a0dc675bdbc2817dad5cc07969 patch 8.1.0919: compiler warnings commit https://github.com/vim/vim/commit/0f77d6afd506d1be4b0bef46e1d2268440e1ba88 Author: Bram Moolenaar Date: Thu Feb 14 20:55:09 2019 +0100 patch 8.1.0919: compiler warnings Problem: Compiler warnings. Solution: Add type casts. (Mike Williams) diff --git a/src/message.c b/src/message.c --- a/src/message.c +++ b/src/message.c @@ -2938,7 +2938,7 @@ do_more_prompt(int typed_char) mch_errmsg(char *str) { #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) - int len = STRLEN(str); + int len = (int)STRLEN(str); DWORD nwrite = 0; DWORD mode = 0; HANDLE h = GetStdHandle(STD_ERROR_HANDLE); @@ -3026,7 +3026,7 @@ mch_errmsg(char *str) mch_msg(char *str) { #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) - int len = STRLEN(str); + int len = (int)STRLEN(str); DWORD nwrite = 0; DWORD mode; HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -4800,7 +4800,7 @@ addstate_here( emsg(_(e_maxmempat)); return NULL; } - newl = (nfa_thread_T *)alloc(newsize); + newl = (nfa_thread_T *)alloc((int)newsize); if (newl == NULL) return NULL; l->len = newlen; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 919, +/**/ 918, /**/ 917,