summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-10-31 12:45:50 -0600
committerFather Chrysostomos <sprout@cpan.org>2010-10-31 16:12:00 -0700
commitea6756a64e0a36eb91bcea39467a2253c31192b8 (patch)
tree0db4b893fc2f9b6a67c3816dff3650e0b91392ad /regexec.c
parenta5a291f55baf01a6b4b1013e2d3c722a0ad77432 (diff)
downloadperl-ea6756a64e0a36eb91bcea39467a2253c31192b8.tar.gz
reginclass: Remove unnecessary test
The previous changes have made it clear that this test never was useful, so remove it.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 5192899aa2..0fc505752d 100644
--- a/regexec.c
+++ b/regexec.c
@@ -6238,7 +6238,7 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
if (utf8_target || (flags & ANYOF_UNICODE)) {
if (utf8_target && !ANYOF_RUNTIME(n)) {
- if (c_len != (STRLEN)-1 && c < 256 && ANYOF_BITMAP_TEST(n, c))
+ if (c < 256 && ANYOF_BITMAP_TEST(n, c))
match = TRUE;
}
if (!match && utf8_target && (flags & ANYOF_UNICODE_ALL) && c >= 256)