commit | 325d169a5406a9fd203311abc66fb3c8ffd30163 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Mar 15 00:16:34 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Mar 15 00:16:34 2004 +0000 |
tree | 64a491040aeec467f30d52ae73e8f2dabcc87b64 | |
parent | deb4da500b2adc2b299081a404343c36c39afc29 [diff] [blame] |
Eliminate an unnecessary test on a common code path.
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 @@ #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