]> granicus.if.org Git - python/commitdiff
Eliminate an unnecessary test on a common code path.
authorRaymond Hettinger <python@rcn.com>
Mon, 15 Mar 2004 00:16:34 +0000 (00:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 15 Mar 2004 00:16:34 +0000 (00:16 +0000)
Objects/tupleobject.c

index 2d494484e04519b2daa6252f0160c85c443835cf..66fb146174cc046462e3ebdd6f8fdcb0502de8fb 100644 (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