summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.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/listobject.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/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 41f7390..460f63a 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -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;
}