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

@ -2601,8 +2601,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
/* XXX can we use %zd here? */
PyErr_Format(PyExc_ValueError,
"attempt to assign sequence of size %ld to extended slice of size %ld",
PySequence_Fast_GET_SIZE(seq),
slicelength);
(long)PySequence_Fast_GET_SIZE(seq),
(long)slicelength);
Py_DECREF(seq);
return -1;
}