diff src/regexp_nfa.c @ 6545:1ef8ce97fc40 v7.4.599

updated for version 7.4.599 Problem: Out-of-memory error. Solution: Avoid trying to allocate a negative amount of memory, use size_t instead of int. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 14:40:00 +0100
parents bdc8e71633e4
children 436d6c9e57f2
line wrap: on
line diff
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -5408,7 +5408,7 @@ nfa_regmatch(prog, start, submatch, m)
     regsubs_T		*m;
 {
     int		result;
-    int		size = 0;
+    size_t	size = 0;
     int		flag = 0;
     int		go_to_nextline = FALSE;
     nfa_thread_T *t;