Support %zd in PyErr_Format and PyString_FromFormat.
diff --git a/Objects/structseq.c b/Objects/structseq.c
index a95f3a9..7a01fc4 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -125,7 +125,7 @@
if (min_len != max_len) {
if (len < min_len) {
PyErr_Format(PyExc_TypeError,
- "%.500s() takes an at least %ld-sequence (%ld-sequence given)",
+ "%.500s() takes an at least %zd-sequence (%zd-sequence given)",
type->tp_name, (long)min_len, (long)len);
Py_DECREF(arg);
return NULL;
@@ -133,7 +133,7 @@
if (len > max_len) {
PyErr_Format(PyExc_TypeError,
- "%.500s() takes an at most %ld-sequence (%ld-sequence given)",
+ "%.500s() takes an at most %zd-sequence (%zd-sequence given)",
type->tp_name, (long)max_len, (long)len);
Py_DECREF(arg);
return NULL;
@@ -142,7 +142,7 @@
else {
if (len != min_len) {
PyErr_Format(PyExc_TypeError,
- "%.500s() takes a %ld-sequence (%ld-sequence given)",
+ "%.500s() takes a %zd-sequence (%zd-sequence given)",
type->tp_name, (long)min_len, (long)len);
Py_DECREF(arg);
return NULL;