diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-15 00:16:34 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-15 00:16:34 (GMT) |
commit | 325d169a5406a9fd203311abc66fb3c8ffd30163 (patch) | |
tree | 64a491040aeec467f30d52ae73e8f2dabcc87b64 /Objects/tupleobject.c | |
parent | deb4da500b2adc2b299081a404343c36c39afc29 (diff) | |
download | cpython-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.c | 4 |
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 |