summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-08-25 00:29:49 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-09-24 08:39:41 +0000
commitd1b8022985c09823f9032ec74d6ce16d9391f57d (patch)
tree0e1bc2fbc39f52244cece88755a43249967798f2 /regcomp.c
parent9ea370a75330a8ebfe27730428b6c5793636dc59 (diff)
downloadperl-d1b8022985c09823f9032ec74d6ce16d9391f57d.tar.gz
Extraneous warning for (?()A|B)
Message-Id: <199808250829.EAA02470@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1873
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 468423368d..85a44d5b39 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1210,10 +1210,14 @@ reg(I32 paren, I32 *flagp)
else
regtail(br, reganode(LONGJMP, 0));
c = *nextchar();
+ if (flags&HASWIDTH)
+ *flagp |= HASWIDTH;
if (c == '|') {
lastbr = reganode(IFTHEN, 0); /* Fake one for optimizer. */
regbranch(&flags, 1);
regtail(ret, lastbr);
+ if (flags&HASWIDTH)
+ *flagp |= HASWIDTH;
c = *nextchar();
}
else