summaryrefslogtreecommitdiff
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-16 06:21:57 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-16 06:21:57 +0000
commit1f6961af675c2bdcf8b62aeda44564ac63a77a5f (patch)
tree832da04e227e77ae285b955710a8385315b9ffd0 /Objects/structseq.c
parent2001bba93893e6a693b1fae707cbd1b5348d1a4f (diff)
downloadcpython-1f6961af675c2bdcf8b62aeda44564ac63a77a5f.tar.gz
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 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;
}