From 3fbfee08a74a1551b76e125a3e0da03f2884c21b Mon Sep 17 00:00:00 2001 From: Robin Barker Date: Mon, 20 Jun 2005 14:47:37 +0100 Subject: FPTR2DPTR/DPTR2FPTR Message-ID: <533D273D4014D411AB1D00062938C4D90849C6E4@hotel.npl.co.uk> p4raw-id: //depot/perl@24915 --- perl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl.h b/perl.h index d3f83295be..262e00c4fb 100644 --- a/perl.h +++ b/perl.h @@ -1515,8 +1515,8 @@ typedef UVTYPE UV; * The only feasible use is probably temporarily storing * function pointers in a data pointer (such as a void pointer). */ -#define DPTR2FPTR(t,p) ((t)PTR2UV(p)) /* data pointer to function pointer */ -#define FPTR2DPTR(t,p) ((t)PTR2UV(p)) /* function pointer to data pointer */ +#define DPTR2FPTR(t,p) ((t)(PTRV)(p)) /* data pointer to function pointer */ +#define FPTR2DPTR(t,p) ((t)(PTRV)(p)) /* function pointer to data pointer */ #ifdef USE_LONG_DOUBLE # if defined(HAS_LONG_DOUBLE) && LONG_DOUBLESIZE == DOUBLESIZE -- cgit v1.2.1