summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-03 15:42:28 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-03 15:42:28 +0000
commitc93fa8177be816b728baa070d16f5574403845f6 (patch)
tree4808e1f396a09528ccea5aca00bedca957836837 /regcomp.c
parent8c8ad484ae56ad5a81dc3b76a40859fc90c16a10 (diff)
parent7e6fa307436d3e019e355ee1012a967957762854 (diff)
downloadperl-c93fa8177be816b728baa070d16f5574403845f6.tar.gz
integrate cfgperl and vmsperl contents into mainline
p4raw-id: //depot/perl@5486
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/regcomp.c b/regcomp.c
index a1272ebfc7..330dcbe429 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2823,12 +2823,12 @@ S_regpposixcc(pTHX_ I32 value)
}
break;
}
- if ((namedclass == OOB_NAMEDCLASS ||
- !(posixcc + skip + 2 < PL_regxend &&
- (posixcc[skip] == ':' &&
- posixcc[skip + 1] == ']'))))
- Perl_croak(aTHX_ "Character class [:%.*s:] unknown",
- t - s - 1, s + 1);
+ if (namedclass == OOB_NAMEDCLASS ||
+ posixcc[skip] != ':' ||
+ posixcc[skip+1] != ']')
+ Perl_croak(aTHX_
+ "Character class [:%.*s:] unknown",
+ t - s - 1, s + 1);
} else if (ckWARN(WARN_REGEXP) && !SIZE_ONLY)
/* [[=foo=]] and [[.foo.]] are still future. */
Perl_warner(aTHX_ WARN_REGEXP,