From f00ea57ce1fe0bfe137d76703b1bdc4d2293c781 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 29 Jun 2001 08:32:54 +0000 Subject: * lex.c (rb_reserved_word): lex_state after tRESCUE should be EXPR_MID. * gc.c (add_heap): allocation size of the heap unit is doubled for each allocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'regex.c') diff --git a/regex.c b/regex.c index bc63fac651..fc4b7253e6 100644 --- a/regex.c +++ b/regex.c @@ -3496,6 +3496,7 @@ init_regs(regs, num_regs) else if (regs->allocated < num_regs) { TREALLOC(regs->beg, num_regs, int); TREALLOC(regs->end, num_regs, int); + regs->allocated = num_regs; } for (i=0; ibeg[i] = regs->end[i] = -1; -- cgit v1.2.3