summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>1998-07-06 23:41:14 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-07-07 21:36:29 +0000
commit4b154ab5f602806ac0f12a58e6d35daf8689fea5 (patch)
treea89be12f160e04ec339225cc77f3f2e8afa08ef9 /pp_hot.c
parent51301382055ed3f3276ad3e2c544fb9e477a270e (diff)
downloadperl-4b154ab5f602806ac0f12a58e6d35daf8689fea5.tar.gz
Evaluation of AVHVs in scalar context
Message-ID: <m33ecedaxx.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1358
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 8e3bf706da..d825e64eb8 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -544,7 +544,8 @@ PP(pp_rv2hv)
}
else {
dTARGET;
- /* This bit is OK even when hv is really an AV */
+ if (SvTYPE(hv) == SVt_PVAV)
+ hv = avhv_keys((AV*)hv);
if (HvFILL(hv))
sv_setpvf(TARG, "%ld/%ld",
(long)HvFILL(hv), (long)HvMAX(hv) + 1);