From: Neal Norwitz Date: Mon, 17 Apr 2006 05:56:32 +0000 (+0000) Subject: No need to cast a Py_ssize_t, use %z in PyErr_Format X-Git-Tag: v2.5a2~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e2cbabb8d1b44cc4c9dfd31b0dd5fa9a950dba7;p=python No need to cast a Py_ssize_t, use %z in PyErr_Format --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 99cadca8fc..9d4dc7410d 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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; }