This commit is contained in:
Benjamin Peterson 2010-11-03 23:11:10 +00:00
parent b6d4a8e4de
commit 83473288a8

View file

@ -371,8 +371,9 @@ _IntTupleFromSsizet(int len, Py_ssize_t *vals)
return Py_None;
}
intTuple = PyTuple_New(len);
if (!intTuple) return NULL;
for(i=0; i<len; i++) {
if (!intTuple)
return NULL;
for (i=0; i<len; i++) {
o = PyLong_FromSsize_t(vals[i]);
if (!o) {
Py_DECREF(intTuple);