diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-29 08:32:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-29 08:32:54 +0000 |
commit | f00ea57ce1fe0bfe137d76703b1bdc4d2293c781 (patch) | |
tree | 116f8145de8f318a2f85c849b11a3c38f00c576b /regex.c | |
parent | 56553684679e8160f7fdfaad746fd4b881b8ff3d (diff) |
* 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
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; i<num_regs; i++) { regs->beg[i] = regs->end[i] = -1; |