Skip to content

Commit

Permalink
updated for version 7.4.174
Browse files Browse the repository at this point in the history
Problem:    Compiler warnings for Python interface. (Tony Mechelynck)
Solution:   Add type casts, initialize variable.
  • Loading branch information
brammool committed Feb 11, 2014
1 parent 12a0f22 commit 3b52261
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/if_py_both.h
Expand Up @@ -2368,7 +2368,7 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
PyInt numreplaced = 0;
PyInt numadded = 0;
PyInt size;
listitem_T **lis;
listitem_T **lis = NULL;

size = ListLength(self);

Expand Down Expand Up @@ -2503,8 +2503,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
{
Py_DECREF(iterator);
PyErr_FORMAT(PyExc_ValueError,
N_("attempt to assign sequence of size greater then %d "
"to extended slice"), slicelen);
N_("attempt to assign sequence of size greater then %ld "
"to extended slice"), (long)slicelen);
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
PyMem_Free(lis);
return -1;
Expand All @@ -2516,8 +2516,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
if (step != 1 && i != slicelen)
{
PyErr_FORMAT2(PyExc_ValueError,
N_("attempt to assign sequence of size %d to extended slice "
"of size %d"), i, slicelen);
N_("attempt to assign sequence of size %ld to extended slice "
"of size %ld"), (long)i, (long)slicelen);
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
PyMem_Free(lis);
return -1;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -738,6 +738,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
174,
/**/
173,
/**/
Expand Down

0 comments on commit 3b52261

Please sign in to comment.