Commit 0e2cbabb authored by Neal Norwitz's avatar Neal Norwitz

No need to cast a Py_ssize_t, use %z in PyErr_Format

parent 4b16de43
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment