diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-06 14:50:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-06 14:50:21 +0000 |
commit | c158a4fd68e274329d9ffd7198cb9eb1b21b0dfe (patch) | |
tree | 1eadef310fe5d08bd4c2f6464c0c7da4a712e13d /hv.c | |
parent | ae29f7f0afee45e66c70e78182c1d7337e125b1f (diff) | |
download | perl-c158a4fd68e274329d9ffd7198cb9eb1b21b0dfe.tar.gz |
Abstract all access to the shared hash value through SvSHARED_HASH()
p4raw-id: //depot/perl@24716
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -650,7 +650,7 @@ S_hv_fetch_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, flags |= HVhek_REHASH; } else if (!hash) { if (keysv && (SvIsCOW_shared_hash(keysv))) { - hash = SvUVX(keysv); + hash = SvSHARED_HASH(keysv); } else { PERL_HASH(hash, key, klen); } @@ -1014,7 +1014,7 @@ S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, PERL_HASH_INTERNAL(hash, key, klen); } else if (!hash) { if (keysv && (SvIsCOW_shared_hash(keysv))) { - hash = SvUVX(keysv); + hash = SvSHARED_HASH(keysv); } else { PERL_HASH(hash, key, klen); } |