regcomp.c: Reorder 'if' clauses
authorKarl Williamson <khw@cpan.org>
Sun, 14 Oct 2018 21:56:57 +0000 (15:56 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 20 Oct 2018 06:09:55 +0000 (00:09 -0600)
This is for sake of clarity so that the comment applies to the adjacent
clause.

regcomp.c

index 443c3ff..b5f7bb4 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -13879,8 +13879,9 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
                                REQUIRE_UTF8(flagp);
                            }
                            p += numlen;
-                            if (   numlen < 3 /* like \08, \178 */
-                                && isDIGIT(*p) && ckWARN(WARN_REGEXP))
+                            if (   isDIGIT(*p)  /* like \08, \178 */
+                                && ckWARN(WARN_REGEXP)
+                                && numlen < 3)
                             {
                                reg_warn_non_literal_string(
                                          p + 1,