From ea6756a64e0a36eb91bcea39467a2253c31192b8 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 31 Oct 2010 12:45:50 -0600 Subject: reginclass: Remove unnecessary test The previous changes have made it clear that this test never was useful, so remove it. --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regexec.c') 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) -- cgit v1.2.1