mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
regexp (?:xxx) bug. too manu pops
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@38 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8852f4ad9
commit
b3b7b7200c
1 changed files with 2 additions and 1 deletions
3
regex.c
3
regex.c
|
|
@ -1398,6 +1398,7 @@ re_compile_pattern(pattern, size, bufp)
|
||||||
store_jump(fixup_jump, jump, b);
|
store_jump(fixup_jump, jump, b);
|
||||||
BUFPUSH(stop_memory);
|
BUFPUSH(stop_memory);
|
||||||
BUFPUSH(stackp[-1]);
|
BUFPUSH(stackp[-1]);
|
||||||
|
stackp--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '!':
|
case '!':
|
||||||
|
|
@ -1412,13 +1413,13 @@ re_compile_pattern(pattern, size, bufp)
|
||||||
STORE_NUMBER(bufp->buffer+stackp[-1], b - bufp->buffer - stackp[-1] - 2);
|
STORE_NUMBER(bufp->buffer+stackp[-1], b - bufp->buffer - stackp[-1] - 2);
|
||||||
BUFPUSH(0); /* space to hold stack pos */
|
BUFPUSH(0); /* space to hold stack pos */
|
||||||
BUFPUSH(0);
|
BUFPUSH(0);
|
||||||
|
stackp--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ':':
|
case ':':
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
stackp--;
|
|
||||||
begalt = *--stackp + bufp->buffer;
|
begalt = *--stackp + bufp->buffer;
|
||||||
stackp--;
|
stackp--;
|
||||||
fixup_jump = *stackp ? *stackp + bufp->buffer - 1 : 0;
|
fixup_jump = *stackp ? *stackp + bufp->buffer - 1 : 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue