[perl #111000] Let hv_store work on hint hashes
authorFather Chrysostomos <sprout@cpan.org>
Mon, 23 Apr 2012 05:32:09 +0000 (22:32 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 May 2012 23:51:32 +0000 (16:51 -0700)
commite33525913afb6ff03f7a9e1f9881fd5ea6982f22
treea1d8a854f5d7f8fc42bd43fb00c827944d0754ab
parent6d77e8c75fe4eeaaa87223507d2214238206bf19
[perl #111000] Let hv_store work on hint hashes

Magic attached to hash elements has its key stored differently depend-
ing on how it was supplied to hv_common.  hv_store passes a string/
length pair to hv_common, while hv_store_ent passes an SV.

magic_clearhint wasn’t able to handle string/length pairs, and only
worked with SVs, resulting in assertion failures or crashes.

This commit fixes magic_clearhint, so that XS code can use hv_store on
hint hashes.
ext/XS-APItest/t/hash.t
mg.c