Skip to content

Commit 45c3fb3

Browse files
committed
updated for version 7.4.174
Problem: Compiler warnings for Python interface. (Tony Mechelynck) Solution: Add type casts, initialize variable.
1 parent 5832c77 commit 45c3fb3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/if_py_both.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
23682368
PyInt numreplaced = 0;
23692369
PyInt numadded = 0;
23702370
PyInt size;
2371-
listitem_T **lis;
2371+
listitem_T **lis = NULL;
23722372

23732373
size = ListLength(self);
23742374

@@ -2503,8 +2503,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
25032503
{
25042504
Py_DECREF(iterator);
25052505
PyErr_FORMAT(PyExc_ValueError,
2506-
N_("attempt to assign sequence of size greater then %d "
2507-
"to extended slice"), slicelen);
2506+
N_("attempt to assign sequence of size greater then %ld "
2507+
"to extended slice"), (long)slicelen);
25082508
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
25092509
PyMem_Free(lis);
25102510
return -1;
@@ -2516,8 +2516,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
25162516
if (step != 1 && i != slicelen)
25172517
{
25182518
PyErr_FORMAT2(PyExc_ValueError,
2519-
N_("attempt to assign sequence of size %d to extended slice "
2520-
"of size %d"), i, slicelen);
2519+
N_("attempt to assign sequence of size %ld to extended slice "
2520+
"of size %ld"), (long)i, (long)slicelen);
25212521
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
25222522
PyMem_Free(lis);
25232523
return -1;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
174,
741743
/**/
742744
173,
743745
/**/

0 commit comments

Comments
 (0)