From c4eee583d9b942cc468ceba61756b62fad7d5979 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 14 Jan 2014 12:47:53 -0700 Subject: [PATCH] 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. --- regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4