summaryrefslogtreecommitdiff
path: root/src/typemap
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-12 00:31:52 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-12 00:31:52 +0100
commitbe7473442952f0d9f3a05c62780cd99ec70516d9 (patch)
tree79c255ed7450a9abdeeedee713178e4b14992d23 /src/typemap
parenta61d5fbf7ac9bfa0083faa926ad4015bf7125309 (diff)
downloadvim-git-be7473442952f0d9f3a05c62780cd99ec70516d9.tar.gz
updated for version 7.3.439v7.3.439
Problem: Compiler warnings to size casts in Perl interface. Solution: Use XS macros. (James McCoy)
Diffstat (limited to 'src/typemap')
-rw-r--r--src/typemap2
1 files changed, 1 insertions, 1 deletions
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\");
}