summaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-01 23:49:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-01 23:49:16 +0000
commit89a30ab99fc4f48c3b95389255140ab624369c33 (patch)
tree90aeb9eeaa0c42b52312e1875433b2dafea4c52f /regexec.c
parent4058e0bbefcc0c82b725b7dba0ac00de405b8d01 (diff)
downloadruby-89a30ab99fc4f48c3b95389255140ab624369c33.tar.gz
ruby-89a30ab99fc4f48c3b95389255140ab624369c33.tar.xz
ruby-89a30ab99fc4f48c3b95389255140ab624369c33.zip
* eval.c (proc_invoke): nail down dyna_var node when Proc object
or continuation is created. [ruby-dev:24671] * io.c (rb_io_s_popen): do not expand argv array. [ruby-dev:24670] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 7c8ffa47a..a0625fdf7 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2206,7 +2206,8 @@ match_at(regex_t* reg, UChar* str, UChar* end, UChar* sstart,
repeat_inc_ng:
stkp->u.repeat.count++;
- if (stkp->u.repeat.count < reg->repeat_range[mem].upper) {
+ if (stkp->u.repeat.count < reg->repeat_range[mem].upper
+ || reg->repeat_range[mem].upper < 0 /* IS_REPEAT_INFINITE(upper) */) {
if (stkp->u.repeat.count >= reg->repeat_range[mem].lower) {
UChar* pcode = stkp->u.repeat.pcode;