diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-08-04 11:58:27 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-08-07 08:15:39 +0000 |
commit | 10edeb5d2457364a70a6848a864cfa6b89dfc882 (patch) | |
tree | 901034210efd6983fe16b782168144371eb95631 /hv.c | |
parent | 435fbc73c32c7bd8a6a0cdb8a1ea0ca077918585 (diff) | |
download | perl-10edeb5d2457364a70a6848a864cfa6b89dfc882.tar.gz |
g++ large patch
Message-ID: <44D2E203.5050201@iki.fi>
p4raw-id: //depot/perl@28662
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -71,7 +71,7 @@ S_new_he(pTHX) LOCK_SV_MUTEX; if (!*root) S_more_he(aTHX); - he = *root; + he = (HE*) *root; assert(he); *root = HeNEXT(he); UNLOCK_SV_MUTEX; @@ -2831,12 +2831,14 @@ Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, flags = value_type; #ifdef USE_ITHREADS - he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 - + key_len - + key_offset); + he = (struct refcounted_he*) + PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + + key_len + + key_offset); #else - he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 - + key_offset); + he = (struct refcounted_he*) + PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + + key_offset); #endif |