summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-08 02:27:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-08 02:27:57 +0000
commit4a76a316da914ce6cc5c2d7af1dfcd312f3ea6db (patch)
treeb7f1b4a614e921c6b95d74a6aa93911591dc1569 /hv.c
parent352edd9075ba60982b61693a9f3cdf22a5d9b2f9 (diff)
downloadperl-4a76a316da914ce6cc5c2d7af1dfcd312f3ea6db.tar.gz
typo in newHVhv()
p4raw-id: //depot/perl@2214
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hv.c b/hv.c
index 1fad0e2d0e..a8d9fbca50 100644
--- a/hv.c
+++ b/hv.c
@@ -832,14 +832,13 @@ HV *
newHVhv(HV *ohv)
{
register HV *hv;
- register XPVHV* xhv;
STRLEN hv_max = ohv ? HvMAX(ohv) : 0;
STRLEN hv_fill = ohv ? HvFILL(ohv) : 0;
hv = newHV();
while (hv_max && hv_max + 1 >= hv_fill * 2)
hv_max = hv_max / 2; /* Is always 2^n-1 */
- ((XPVHV*)SvANY(hv))->xhv_max = hv_max;
+ HvMAX(hv) = hv_max;
if (!hv_fill)
return hv;
@@ -855,7 +854,7 @@ newHVhv(HV *ohv)
HE *hv_eiter = HvEITER(ohv); /* current entry of iterator */
/* Slow way */
- hv_iterinit(hv);
+ hv_iterinit(ohv);
while (entry = hv_iternext(ohv)) {
hv_store(hv, HeKEY(entry), HeKLEN(entry),
SvREFCNT_inc(HeVAL(entry)), HeHASH(entry));