summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 69190d5..dfd2a16 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -478,7 +478,7 @@ tupleindex(PyTupleObject *self, PyObject *args)
for (i = start; i < stop && i < Py_SIZE(self); i++) {
int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ);
if (cmp > 0)
- return PyLong_FromSsize_t(i);
+ return PyInt_FromSsize_t(i);
else if (cmp < 0)
return NULL;
}
@@ -499,7 +499,7 @@ tuplecount(PyTupleObject *self, PyObject *v)
else if (cmp < 0)
return NULL;
}
- return PyLong_FromSsize_t(count);
+ return PyInt_FromSsize_t(count);
}
static int