summaryrefslogtreecommitdiff
path: root/util.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 /util.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 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 3294dba7bd..668ddc465b 100644
--- a/util.c
+++ b/util.c
@@ -5921,7 +5921,7 @@ Perl_get_re_arg(pTHX_ SV *sv) {
mg_get(sv);
if (SvROK(sv) &&
(tmpsv = (SV*)SvRV(sv)) && /* assign deliberate */
- SvTYPE(tmpsv) == SVt_PVMG &&
+ SvTYPE(tmpsv) == SVt_ORANGE &&
(mg = mg_find(tmpsv, PERL_MAGIC_qr))) /* assign deliberate */
{
return (REGEXP *)mg->mg_obj;