No need to cast a Py_ssize_t, use %z in PyErr_Format
This commit is contained in:
parent
4b16de4350
commit
0e2cbabb8d
|
@ -1677,9 +1677,9 @@ string_join(PyStringObject *self, PyObject *orig)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"sequence item %i: expected string,"
|
"sequence item %zd: expected string,"
|
||||||
" %.80s found",
|
" %.80s found",
|
||||||
/*XXX*/(int)i, item->ob_type->tp_name);
|
i, item->ob_type->tp_name);
|
||||||
Py_DECREF(seq);
|
Py_DECREF(seq);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue