From: Karl Williamson Date: Tue, 31 Dec 2013 15:42:27 +0000 (-0700) Subject: regexec.c: Remove redundant test X-Git-Tag: upstream/5.20.0~892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c2c7b4d206b5e31daf31f52827808c61ff3ab10;p=platform%2Fupstream%2Fperl.git 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. --- 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)