From 26efe402c2a5dba441dc2feae2f15fea6be452ba Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 16 Feb 2006 06:21:57 +0000 Subject: Get rid of compiler warnings (gcc 3.3.4 on x86) --- Objects/structseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Objects/structseq.c') diff --git a/Objects/structseq.c b/Objects/structseq.c index b035ca2966..a95f3a9ad6 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 %ld-sequence (%ld-sequence given)", - type->tp_name, min_len, len); + type->tp_name, (long)min_len, (long)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 %ld-sequence (%ld-sequence given)", - type->tp_name, max_len, len); + type->tp_name, (long)max_len, (long)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 %ld-sequence (%ld-sequence given)", - type->tp_name, min_len, len); + type->tp_name, (long)min_len, (long)len); Py_DECREF(arg); return NULL; } -- cgit v1.2.1