regcomp.c: Remove unnecessary flag setting
authorKarl Williamson <public@khwilliamson.com>
Thu, 27 Dec 2012 19:15:56 +0000 (12:15 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 28 Dec 2012 17:38:55 +0000 (10:38 -0700)
The function cl_anything() sets things up so that the synthetic start
class parameter will match any character.  But this flag doesn't
contribute to that, as it sets things to match under certain conditions
only, and the characters it matches already match by the other actions
of the routine (the ANYOF_BITMAP_SETALL just above).

regcomp.c

index bf8d7e0bab1079f84d490f4cc93e6737516ef47d..c935476d19a420e3dc992705973950e1da8ef5fd 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -756,8 +756,7 @@ S_cl_anything(const RExC_state_t *pRExC_state, struct regnode_charclass_class *c
     PERL_ARGS_ASSERT_CL_ANYTHING;
 
     ANYOF_BITMAP_SETALL(cl);
-    cl->flags = ANYOF_EOS|ANYOF_UNICODE_ALL
-               |ANYOF_NON_UTF8_LATIN1_ALL;
+    cl->flags = ANYOF_EOS|ANYOF_UNICODE_ALL;
 
     /* If any portion of the regex is to operate under locale rules,
      * initialization includes it.  The reason this isn't done for all regexes