mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.4.174
Problem: Compiler warnings for Python interface. (Tony Mechelynck) Solution: Add type casts, initialize variable.
This commit is contained in:
@@ -2368,7 +2368,7 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
|
|||||||
PyInt numreplaced = 0;
|
PyInt numreplaced = 0;
|
||||||
PyInt numadded = 0;
|
PyInt numadded = 0;
|
||||||
PyInt size;
|
PyInt size;
|
||||||
listitem_T **lis;
|
listitem_T **lis = NULL;
|
||||||
|
|
||||||
size = ListLength(self);
|
size = ListLength(self);
|
||||||
|
|
||||||
@@ -2503,8 +2503,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
|
|||||||
{
|
{
|
||||||
Py_DECREF(iterator);
|
Py_DECREF(iterator);
|
||||||
PyErr_FORMAT(PyExc_ValueError,
|
PyErr_FORMAT(PyExc_ValueError,
|
||||||
N_("attempt to assign sequence of size greater then %d "
|
N_("attempt to assign sequence of size greater then %ld "
|
||||||
"to extended slice"), slicelen);
|
"to extended slice"), (long)slicelen);
|
||||||
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
|
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
|
||||||
PyMem_Free(lis);
|
PyMem_Free(lis);
|
||||||
return -1;
|
return -1;
|
||||||
@@ -2516,8 +2516,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
|
|||||||
if (step != 1 && i != slicelen)
|
if (step != 1 && i != slicelen)
|
||||||
{
|
{
|
||||||
PyErr_FORMAT2(PyExc_ValueError,
|
PyErr_FORMAT2(PyExc_ValueError,
|
||||||
N_("attempt to assign sequence of size %d to extended slice "
|
N_("attempt to assign sequence of size %ld to extended slice "
|
||||||
"of size %d"), i, slicelen);
|
"of size %ld"), (long)i, (long)slicelen);
|
||||||
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
|
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
|
||||||
PyMem_Free(lis);
|
PyMem_Free(lis);
|
||||||
return -1;
|
return -1;
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
174,
|
||||||
/**/
|
/**/
|
||||||
173,
|
173,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user