Eliminate an unnecessary test on a common code path.

This commit is contained in:
Raymond Hettinger 2004-03-15 00:16:34 +00:00
parent deb4da500b
commit 325d169a54
1 changed files with 1 additions and 3 deletions

View File

@ -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