forked from aniani/vim
updated for version 7.3.806
Problem: Compiler warnings in Perl code when building with Visual studio 2012. (skeept) Solution: Add type casts. (Christian Brabandt, 2013 Jan 30)
This commit is contained in:
@@ -1048,7 +1048,7 @@ Buffers(...)
|
|||||||
{
|
{
|
||||||
SV *sv = ST(i);
|
SV *sv = ST(i);
|
||||||
if (SvIOK(sv))
|
if (SvIOK(sv))
|
||||||
b = SvIV(ST(i));
|
b = (int) SvIV(ST(i));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char_u *pat;
|
char_u *pat;
|
||||||
@@ -1091,7 +1091,7 @@ Windows(...)
|
|||||||
{
|
{
|
||||||
for (i = 0; i < items; i++)
|
for (i = 0; i < items; i++)
|
||||||
{
|
{
|
||||||
w = SvIV(ST(i));
|
w = (int) SvIV(ST(i));
|
||||||
vimwin = win_find_nr(w);
|
vimwin = win_find_nr(w);
|
||||||
if (vimwin)
|
if (vimwin)
|
||||||
XPUSHs(newWINrv(newSV(0), vimwin));
|
XPUSHs(newWINrv(newSV(0), vimwin));
|
||||||
@@ -1154,8 +1154,8 @@ Cursor(win, ...)
|
|||||||
|
|
||||||
if (!win_valid(win))
|
if (!win_valid(win))
|
||||||
win = curwin;
|
win = curwin;
|
||||||
lnum = SvIV(ST(1));
|
lnum = (int) SvIV(ST(1));
|
||||||
col = SvIV(ST(2));
|
col = (int) SvIV(ST(2));
|
||||||
win->w_cursor.lnum = lnum;
|
win->w_cursor.lnum = lnum;
|
||||||
win->w_cursor.col = col;
|
win->w_cursor.col = col;
|
||||||
check_cursor(); /* put cursor on an existing line */
|
check_cursor(); /* put cursor on an existing line */
|
||||||
@@ -1216,7 +1216,7 @@ Get(vimbuf, ...)
|
|||||||
{
|
{
|
||||||
for (i = 1; i < items; i++)
|
for (i = 1; i < items; i++)
|
||||||
{
|
{
|
||||||
lnum = SvIV(ST(i));
|
lnum = (long) SvIV(ST(i));
|
||||||
if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
|
if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
|
||||||
{
|
{
|
||||||
line = ml_get_buf(vimbuf, lnum, FALSE);
|
line = ml_get_buf(vimbuf, lnum, FALSE);
|
||||||
@@ -1239,7 +1239,7 @@ Set(vimbuf, ...)
|
|||||||
if (items < 3)
|
if (items < 3)
|
||||||
croak("Usage: VIBUF::Set(vimbuf, lnum, @lines)");
|
croak("Usage: VIBUF::Set(vimbuf, lnum, @lines)");
|
||||||
|
|
||||||
lnum = SvIV(ST(1));
|
lnum = (long) SvIV(ST(1));
|
||||||
for(i = 2; i < items; i++, lnum++)
|
for(i = 2; i < items; i++, lnum++)
|
||||||
{
|
{
|
||||||
line = SvPV(ST(i),PL_na);
|
line = SvPV(ST(i),PL_na);
|
||||||
@@ -1274,13 +1274,13 @@ Delete(vimbuf, ...)
|
|||||||
{
|
{
|
||||||
if (items == 2)
|
if (items == 2)
|
||||||
{
|
{
|
||||||
lnum = SvIV(ST(1));
|
lnum = (long) SvIV(ST(1));
|
||||||
count = 1;
|
count = 1;
|
||||||
}
|
}
|
||||||
else if (items == 3)
|
else if (items == 3)
|
||||||
{
|
{
|
||||||
lnum = SvIV(ST(1));
|
lnum = (long) SvIV(ST(1));
|
||||||
count = 1 + SvIV(ST(2)) - lnum;
|
count = (long) 1 + SvIV(ST(2)) - lnum;
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
count = 1;
|
count = 1;
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
@@ -1331,7 +1331,7 @@ Append(vimbuf, ...)
|
|||||||
if (items < 3)
|
if (items < 3)
|
||||||
croak("Usage: VIBUF::Append(vimbuf, lnum, @lines)");
|
croak("Usage: VIBUF::Append(vimbuf, lnum, @lines)");
|
||||||
|
|
||||||
lnum = SvIV(ST(1));
|
lnum = (long) SvIV(ST(1));
|
||||||
for (i = 2; i < items; i++, lnum++)
|
for (i = 2; i < items; i++, lnum++)
|
||||||
{
|
{
|
||||||
line = SvPV(ST(i),PL_na);
|
line = SvPV(ST(i),PL_na);
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
806,
|
||||||
/**/
|
/**/
|
||||||
805,
|
805,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user