1
0
forked from aniani/vim

updated for version 7.3.439

Problem:    Compiler warnings to size casts in Perl interface.
Solution:   Use XS macros. (James McCoy)
This commit is contained in:
Bram Moolenaar
2012-02-12 00:31:52 +01:00
parent a61d5fbf7a
commit be74734429
3 changed files with 5 additions and 3 deletions

View File

@@ -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);