Mercurial > vim
changeset 3344:dec4338a7da2 v7.3.439
updated for version 7.3.439
Problem: Compiler warnings to size casts in Perl interface.
Solution: Use XS macros. (James McCoy)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 12 Feb 2012 00:31:52 +0100 |
parents | a64a3bc0feda |
children | 960b9ae6bd94 |
files | src/if_perl.xs src/typemap src/version.c |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -611,7 +611,7 @@ newWINrv(rv, ptr) if (ptr->w_perl_private == NULL) { ptr->w_perl_private = newSV(0); - sv_setiv(ptr->w_perl_private, (IV)ptr); + sv_setiv(ptr->w_perl_private, PTR2IV(ptr)); } else SvREFCNT_inc(ptr->w_perl_private); @@ -629,7 +629,7 @@ newBUFrv(rv, ptr) if (ptr->b_perl_private == NULL) { ptr->b_perl_private = newSV(0); - sv_setiv(ptr->b_perl_private, (IV)ptr); + sv_setiv(ptr->b_perl_private, PTR2IV(ptr)); } else SvREFCNT_inc(ptr->b_perl_private);