Get rid of compiler warnings (gcc 3.3.4 on x86)

This commit is contained in:
Neal Norwitz 2006-02-16 06:21:57 +00:00
parent 15231548d2
commit 26efe402c2
5 changed files with 11 additions and 11 deletions

View file

@ -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;
}