summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-11-03 23:11:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-11-03 23:11:10 (GMT)
commit83473288a8201f327ff11d5cfef5e3035fefda4f (patch)
tree014da3531b9fb8cbb339d34cae84769a510d95ed /Objects
parentb6d4a8e4de715d7a7f1fa009f5b636643e76e292 (diff)
downloadcpython-83473288a8201f327ff11d5cfef5e3035fefda4f.zip
cpython-83473288a8201f327ff11d5cfef5e3035fefda4f.tar.gz
cpython-83473288a8201f327ff11d5cfef5e3035fefda4f.tar.bz2
deuglify
Diffstat (limited to 'Objects')
-rw-r--r--Objects/memoryobject.c5
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);