regcomp.c: Move statement down.
authorKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 00:21:32 +0000 (18:21 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 01:01:37 +0000 (19:01 -0600)
This is in prep for another commit which needs the flags to be
untouched for some tests.

regcomp.c

index 1e11827..d6701ce 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -938,9 +938,6 @@ S_cl_or(const RExC_state_t *pRExC_state, struct regnode_charclass_class *cl, con
            cl_anything(pRExC_state, cl);
        }
 
-        /* Take the union */
-       cl->flags |= or_with->flags;
-
        if (ANYOF_NONBITMAP(or_with)) {
 
            /* Use the added node's outside-the-bit-map match if there isn't a
@@ -955,6 +952,9 @@ S_cl_or(const RExC_state_t *pRExC_state, struct regnode_charclass_class *cl, con
            else if (ARG(cl) != ARG(or_with)) {
                cl->flags |= ANYOF_UNICODE_ALL;
            }
+
+        /* Take the union */
+       cl->flags |= or_with->flags;
        }
     }
 }