From 6cef672beecb6487b28e1c85741db8c90f90f456 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 12 Apr 2006 23:17:18 +0000 Subject: [PATCH] D'oh! Don't try to do #ifdefs inside "functions" that are actually macros. p4raw-id: //depot/perl@27781 --- hv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hv.c b/hv.c index f0f9c39..93853a9 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; -- 2.7.4