diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-12 23:17:18 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-12 23:17:18 +0000 |
commit | 6cef672beecb6487b28e1c85741db8c90f90f456 (patch) | |
tree | 60a462243aeb99ddaacab79259d47f0f4bc30df2 /hv.c | |
parent | 968f0fcb6eaf743ef3c5200ddfe6f64fde094d47 (diff) | |
download | perl-6cef672beecb6487b28e1c85741db8c90f90f456.tar.gz |
D'oh! Don't try to do #ifdefs inside "functions" that are actually
macros.
p4raw-id: //depot/perl@27781
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2716,11 +2716,14 @@ Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, } flags = value_type; - he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 #ifdef USE_ITHREADS + he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + key_len -#endif + key_offset); +#else + he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + + key_offset); +#endif he->refcounted_he_next = parent; |