Re: perl@10722: Bogus warnings on REs
Hugo van der Sanden [Thu, 21 Jun 2001 09:51:17 +0000 (10:51 +0100)]
Message-Id: <200106210851.JAA01942@crypt.compulink.co.uk>

Unroll to avoid a UTS compiler bug.

p4raw-id: //depot/perl@10774

regcomp.c

index 3241444..a12f4e1 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -1076,7 +1076,8 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, I32 *deltap, reg
                }
                if (!scan)              /* It was not CURLYX, but CURLY. */
                    scan = next;
-               if (ckWARN(WARN_REGEXP) && (minnext + deltanext == 0)
+               if (ckWARN(WARN_REGEXP)
+                   && (minnext == 0) && (deltanext == 0)
                    && data && !(data->flags & (SF_HAS_PAR|SF_IN_PAR))
                    && maxcount <= REG_INFTY/3) /* Complement check for big count */
                {