diff src/regexp_nfa.c @ 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 3808b583889e
children 0c49755f460e
line wrap: on
line diff
--- 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;