diff options
-rw-r--r-- | Objects/memoryobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 36626b2..4326730 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -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); |