Kaydet (Commit) 325d169a authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Eliminate an unnecessary test on a common code path.

üst deb4da50
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment