diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-27 13:46:46 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-27 13:46:46 +0000 |
commit | 3ce3ed558a83da8e2c458cdff55957484ff161a7 (patch) | |
tree | 29e33b64bdbac4752bbb0bc1d0f9e69344de2f84 /regexec.c | |
parent | 7d879f32d6bc460c660bdefc13574ab1b05062e9 (diff) | |
download | perl-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } } |