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
commitfdf23a13749f9c7d752f720da093430e16e936fb (patch)
treea89be12f160e04ec339225cc77f3f2e8afa08ef9 /pp_hot.c
parentf3e01130d406bab378c02da8055e989d19498bfb (diff)
downloadperl-fdf23a13749f9c7d752f720da093430e16e936fb.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);