summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-15 00:16:34 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-15 00:16:34 (GMT)
commit325d169a5406a9fd203311abc66fb3c8ffd30163 (patch)
tree64a491040aeec467f30d52ae73e8f2dabcc87b64 /Objects/tupleobject.c
parentdeb4da500b2adc2b299081a404343c36c39afc29 (diff)
downloadcpython-325d169a5406a9fd203311abc66fb3c8ffd30163.zip
cpython-325d169a5406a9fd203311abc66fb3c8ffd30163.tar.gz
cpython-325d169a5406a9fd203311abc66fb3c8ffd30163.tar.bz2
Eliminate an unnecessary test on a common code path.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 2d49448..66fb146 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -40,9 +40,7 @@ PyTuple_New(register int size)
#endif
return (PyObject *) op;
}
- if (0 < size && size < MAXSAVESIZE &&
- (op = free_tuples[size]) != NULL)
- {
+ if (size < MAXSAVESIZE && (op = free_tuples[size]) != NULL) {
free_tuples[size] = (PyTupleObject *) op->ob_item[0];
num_free_tuples[size]--;
#ifdef COUNT_ALLOCS