diff options
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r-- | Objects/structseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index 7a01fc4..023a1fd 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -126,7 +126,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len < min_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes an at least %zd-sequence (%zd-sequence given)", - type->tp_name, (long)min_len, (long)len); + type->tp_name, min_len, len); Py_DECREF(arg); return NULL; } @@ -134,7 +134,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len > max_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes an at most %zd-sequence (%zd-sequence given)", - type->tp_name, (long)max_len, (long)len); + type->tp_name, max_len, len); Py_DECREF(arg); return NULL; } @@ -143,7 +143,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len != min_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes a %zd-sequence (%zd-sequence given)", - type->tp_name, (long)min_len, (long)len); + type->tp_name, min_len, len); Py_DECREF(arg); return NULL; } |