diff options
Diffstat (limited to 'ext/Storable')
-rw-r--r-- | ext/Storable/Storable.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs index 5913b0ecf9..cd2a76b551 100644 --- a/ext/Storable/Storable.xs +++ b/ext/Storable/Storable.xs @@ -267,7 +267,7 @@ typedef struct stcxt { #define dSTCXT_PTR(T,name) \ T name = (T)(perinterp_sv && SvIOK(perinterp_sv)\ - ? SvIVX(perinterp_sv) : NULL) + ? INT2PTR(T, SvIVX(perinterp_sv)) : NULL) #define dSTCXT \ dSTCXT_SV; \ dSTCXT_PTR(stcxt_t *, cxt) |