summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-27 13:46:46 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-27 13:46:46 +0000
commit3ce3ed558a83da8e2c458cdff55957484ff161a7 (patch)
tree29e33b64bdbac4752bbb0bc1d0f9e69344de2f84 /regexec.c
parent7d879f32d6bc460c660bdefc13574ab1b05062e9 (diff)
downloadperl-3ce3ed558a83da8e2c458cdff55957484ff161a7.tar.gz
Regexps are now orange.
(Correct a comparison of $] with 5.011 in B.pm) p4raw-id: //depot/perl@32740
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index a02a0c037a..634844bde0 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3730,9 +3730,11 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
re = CALLREGCOMP(ret, pm_flags);
if (!(SvFLAGS(ret)
& (SVs_TEMP | SVs_PADTMP | SVf_READONLY
- | SVs_GMG)))
+ | SVs_GMG))) {
+ SvUPGRADE(ret, SVt_ORANGE);
sv_magic(ret,(SV*)ReREFCNT_inc(re),
PERL_MAGIC_qr,0,0);
+ }
PL_regsize = osize;
}
}