mirror of
https://github.com/python/cpython.git
synced 2026-05-18 18:33:57 -04:00
No need to cast a Py_ssize_t, use %z in PyErr_Format
This commit is contained in:
@@ -1677,9 +1677,9 @@ string_join(PyStringObject *self, PyObject *orig)
|
||||
}
|
||||
#endif
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"sequence item %i: expected string,"
|
||||
"sequence item %zd: expected string,"
|
||||
" %.80s found",
|
||||
/*XXX*/(int)i, item->ob_type->tp_name);
|
||||
i, item->ob_type->tp_name);
|
||||
Py_DECREF(seq);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user