summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-12 23:17:18 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-12 23:17:18 +0000
commit6cef672beecb6487b28e1c85741db8c90f90f456 (patch)
tree60a462243aeb99ddaacab79259d47f0f4bc30df2 /hv.c
parent968f0fcb6eaf743ef3c5200ddfe6f64fde094d47 (diff)
downloadperl-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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index f0f9c390b7..93853a944f 100644
--- a/hv.c
+++ b/hv.c
@@ -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;