Revert "regcomp.c: Use a weird value in a place where ignored"
authorKarl Williamson <khw@cpan.org>
Sun, 2 Dec 2018 08:30:39 +0000 (01:30 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 2 Dec 2018 17:24:42 +0000 (10:24 -0700)
This reverts commit 5a4bc50b395654abde21718cbce2e296049f470d.
It turns out I was wrong, and the value isn't ignored.  The commit
caused the pattern to be optimized differently, but still be valid,
so no tests failed.

regcomp.c

index 59ef468..9dac06c 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -14508,8 +14508,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
 
                 }
 
-                alloc_maybe_populate_EXACT(pRExC_state, ret, flagp, len,
-                                           UV_MAX,  /* unused here */
+                alloc_maybe_populate_EXACT(pRExC_state, ret, flagp, len, ender,
                                            FALSE /* Don't look to see if could
                                                     be turned into an EXACT
                                                     node, as we have already