summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-09-25 22:09:07 +0200
committerDave Mitchell <davem@fdisolutions.com>2006-09-25 22:01:36 +0000
commit03363afd3c2c023b9096c021741ecc63bc0de7dd (patch)
treef27d40ad2d3d91b064c59e82fc9799526b80d6c0 /regcomp.c
parent84da74a7adb7db2354917b83df794f4983438fcd (diff)
downloadperl-03363afd3c2c023b9096c021741ecc63bc0de7dd.tar.gz
Automate generation of the regmatch() state constants
Subject: Re: Problem with EVAL handling in bleads iterative regex code. Message-Id: <9b18b3110609251109t4cb1d443y87d7a7dc94fcfc24@mail.gmail.com> p4raw-id: //depot/perl@28892
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 6c1e57401d..a959bf68b6 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -7258,7 +7258,7 @@ Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o)
GET_RE_DEBUG_FLAGS_DECL;
sv_setpvn(sv, "", 0);
- if (OP(o) >= reg_num) /* regnode.type is unsigned */
+ if (OP(o) > REGNODE_MAX) /* regnode.type is unsigned */
/* It would be nice to FAIL() here, but this may be called from
regexec.c, and it would be hard to supply pRExC_state. */
Perl_croak(aTHX_ "Corrupted regexp opcode");