diff options
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index ba44c3d..d403a5e 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -600,7 +600,7 @@ listindex(self, args) } for (i = 0; i < self->ob_size; i++) { if (cmpobject(self->ob_item[i], args) == 0) - return newintobject(i); + return newintobject((long)i); } err_setstr(ValueError, "list.index(x): x not in list"); return NULL; |