changeset 15824:6733b8b1caf3 v8.1.0919

patch 8.1.0919: compiler warnings commit https://github.com/vim/vim/commit/0f77d6afd506d1be4b0bef46e1d2268440e1ba88 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 14 20:55:09 2019 +0100 patch 8.1.0919: compiler warnings Problem: Compiler warnings. Solution: Add type casts. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Feb 2019 21:00:06 +0100
parents 5798cba2079a
children c2cac058bb49
files src/message.c src/regexp_nfa.c src/version.c
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;
--- 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,