summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2002-05-07 11:40:44 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-08 22:39:11 +0000
commitf0faabb7a112c0469c217fed92a3d55cbe5f1735 (patch)
tree87203cd085590ee5c1fc3167d382d38213430ee7 /pp_sys.c
parent4cab98c0e4cbb2d394d0460eb0bee09f843632e8 (diff)
downloadperl-f0faabb7a112c0469c217fed92a3d55cbe5f1735.tar.gz
[PATCH] Re: perl@16433
Date: Tue, 07 May 2002 18:40:44 -0700 Message-ID: <cII28gzkgaOS092yn@efn.org> Subject: Re: [PATCH] Re: perl@16433 From: sthoenna@efn.org (Yitzchak Scott-Thoennes) Date: Wed, 08 May 2002 10:16:42 -0700 Message-ID: <61V28gzkg+jG092yn@efn.org> p4raw-id: //depot/perl@16501
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_sys.c b/pp_sys.c
index c55f0a4651..d4da064135 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -824,9 +824,7 @@ PP(pp_tie)
if (sv_isobject(sv)) {
sv_unmagic(varsv, how);
/* Croak if a self-tie on an aggregate is attempted. */
- if (varsv == SvRV(sv) &&
- (SvTYPE(sv) == SVt_PVAV ||
- SvTYPE(sv) == SVt_PVHV))
+ if (varsv == SvRV(sv) && how == PERL_MAGIC_tied)
Perl_croak(aTHX_
"Self-ties of arrays and hashes are not supported");
sv_magic(varsv, sv, how, Nullch, 0);