summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-16 16:54:06 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-16 16:54:06 +0000
commit2e5b91de24d62e1e2bf0fd32a1d4d1d849cafc82 (patch)
tree26bb2662cefa3272e2d2d365d577829fa36fbd2f /mg.c
parent702119bc891cbff15043348ab2eab5c9d600e0be (diff)
downloadperl-2e5b91de24d62e1e2bf0fd32a1d4d1d849cafc82.tar.gz
Split out the use of SVp_SCREAM for GVs with GPs into a new symbolic
flag SVpgv_GP, and use this in isGV_with_GP_on/off. p4raw-id: //depot/perl@29565
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 39117e20a4..b0af1c841e 100644
--- a/mg.c
+++ b/mg.c
@@ -1897,8 +1897,7 @@ Perl_magic_setglob(pTHX_ SV *sv, MAGIC *mg)
if (!SvOK(sv))
return 0;
- if (SvFLAGS(sv) & SVp_SCREAM
- && (SvTYPE(sv) == SVt_PVGV || SvTYPE(sv) == SVt_PVGV)) {
+ if (isGV_with_GP(sv)) {
/* We're actually already a typeglob, so don't need the stuff below.
*/
return 0;