From: Karl Williamson Date: Tue, 14 Jan 2014 19:47:53 +0000 (-0700) Subject: regcomp.c: Simplify expression X-Git-Tag: upstream/5.20.0~665 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4eee583d9b942cc468ceba61756b62fad7d5979;p=platform%2Fupstream%2Fperl.git regcomp.c: Simplify expression The previous commit has allowed us to remove the separate test for LOC, and to replace the one for FOLD by ANYOF_LOC_FOLD. The flags being tested here can't be true unless LOC is also true, so testing for it is superfluous. --- diff --git a/regcomp.c b/regcomp.c index 57a73d8..e271cba 100644 --- a/regcomp.c +++ b/regcomp.c @@ -14419,7 +14419,7 @@ parseit: * invert if there are things such as \w, which aren't known until runtime * */ if (invert - && ! (LOC && (FOLD || (ANYOF_FLAGS(ret) & ANYOF_POSIXL))) + && ! (ANYOF_FLAGS(ret) & (ANYOF_LOC_FOLD|ANYOF_POSIXL)) && ! depends_list && ! HAS_NONLOCALE_RUNTIME_PROPERTY_DEFINITION) {