This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
hv_store was not passing hash onwards (spotted by Dave)
authorNicholas Clark <nick@ccl4.org>
Wed, 7 Jul 2004 13:30:27 +0000 (13:30 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 7 Jul 2004 13:30:27 +0000 (13:30 +0000)
p4raw-id: //depot/perl@23061

hv.c

diff --git a/hv.c b/hv.c
index 54f2e54..502856e 100644 (file)
--- a/hv.c
+++ b/hv.c
@@ -218,7 +218,7 @@ Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen_i32, SV *val, U32 hash)
        flags = 0;
     }
     hek = hv_fetch_common (hv, NULL, key, klen, flags,
-                          (HV_FETCH_ISSTORE|HV_FETCH_JUST_SV), val, 0);
+                          (HV_FETCH_ISSTORE|HV_FETCH_JUST_SV), val, hash);
     return hek ? &HeVAL(hek) : NULL;
 }