summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-16 06:21:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-16 06:21:57 (GMT)
commit26efe402c2a5dba441dc2feae2f15fea6be452ba (patch)
tree7d083ee4baf14cd990a8dbcfefa9aa7ba9ca5285 /Objects/structseq.c
parent15231548d20b2a6fcac2830935ec076bed42448f (diff)
downloadcpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.zip
cpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.tar.gz
cpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.tar.bz2
Get rid of compiler warnings (gcc 3.3.4 on x86)
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r--Objects/structseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index b035ca2..a95f3a9 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;
}