diff options
Diffstat (limited to 'src/typemap')
-rw-r--r-- | src/typemap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typemap b/src/typemap index 40049237be..ca1600ef2e 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\"); } |