From 5c2c7b4d206b5e31daf31f52827808c61ff3ab10 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 31 Dec 2013 08:42:27 -0700 Subject: [PATCH] regexec.c: Remove redundant test A string must be in utf8 format if the first code point that came from it is above 255; therefore it is redundant to test for both. --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexec.c b/regexec.c index fdaa537..d0e0fd2 100644 --- a/regexec.c +++ b/regexec.c @@ -7511,7 +7511,7 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const * positive that will be resolved when the match is done again as not part * of the synthetic start class */ if (!match) { - if (utf8_target && (flags & ANYOF_ABOVE_LATIN1_ALL) && c >= 256) { + if (c >= 256 && (flags & ANYOF_ABOVE_LATIN1_ALL)) { match = TRUE; /* Everything above 255 matches */ } else if (ANYOF_NONBITMAP(n) -- 2.7.4