summaryrefslogtreecommitdiffstats
path: root/Objects/enumobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-03-07 12:08:51 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-03-07 12:08:51 (GMT)
commit725507b52ec40ab49ad87596fff7434322b9b5b1 (patch)
tree5b16b79a6810a7c2683db27ee9d34b10b270ae86 /Objects/enumobject.c
parent8eb8a829c1e4535be9d98b70875d5193f6b94737 (diff)
downloadcpython-725507b52ec40ab49ad87596fff7434322b9b5b1.zip
cpython-725507b52ec40ab49ad87596fff7434322b9b5b1.tar.gz
cpython-725507b52ec40ab49ad87596fff7434322b9b5b1.tar.bz2
Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows.
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r--Objects/enumobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c
index 5999ae9..4811239 100644
--- a/Objects/enumobject.c
+++ b/Objects/enumobject.c
@@ -216,7 +216,7 @@ static PyObject *
reversed_next(reversedobject *ro)
{
PyObject *item;
- long index = ro->index;
+ Py_ssize_t index = ro->index;
if (index >= 0) {
item = PySequence_GetItem(ro->seq, index);