From be7473442952f0d9f3a05c62780cd99ec70516d9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 12 Feb 2012 00:31:52 +0100 Subject: updated for version 7.3.439 Problem: Compiler warnings to size casts in Perl interface. Solution: Use XS macros. (James McCoy) --- src/typemap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/typemap') diff --git a/src/typemap b/src/typemap index 40049237b..ca1600ef2 100644 --- a/src/typemap +++ b/src/typemap @@ -6,7 +6,7 @@ INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); - $var = ($type) tmp; + $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } -- cgit v1.2.1