From ff7674db17214571691c16485434c62efdfcd8d9 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 23 Dec 2012 19:44:03 -0700 Subject: [PATCH] regcomp.c: Add comment, Note for 3018b8238 This adds a comment for this code, which I mistakenly included in commit 3018b823898645e44b8c37c70ac5c6302b031381, and should have been in its own commit. The code optimizes something that has a quantifier of zero into a NOTHING node. --- regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regcomp.c b/regcomp.c index 1a746ca..c28ea5e 100644 --- a/regcomp.c +++ b/regcomp.c @@ -9402,7 +9402,7 @@ S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth) ret = reg_node(pRExC_state, OPFAIL); return ret; } - else if (max == 0) { + else if (max == 0) { /* replace {0} with a nothing node */ if (SIZE_ONLY) { RExC_size = PREVOPER(RExC_size) - regarglen[(U8)NOTHING]; } -- 2.7.4