Kaydet (Commit) fee3acb0 authored tarafından Brett Cannon's avatar Brett Cannon

Remove an unneeded variable assignment.

Found using Clang's static analyzer.
üst eb3fef59
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef PyTuple_MAXSAVESIZE #ifndef PyTuple_MAXSAVESIZE
#define PyTuple_MAXSAVESIZE 20 /* Largest tuple to save on free list */ #define PyTuple_MAXSAVESIZE 20 /* Largest tuple to save on free list */
#endif #endif
#ifndef PyTuple_MAXFREELIST #ifndef PyTuple_MAXFREELIST
#define PyTuple_MAXFREELIST 2000 /* Maximum number of tuples of each size to save */ #define PyTuple_MAXFREELIST 2000 /* Maximum number of tuples of each size to save */
#endif #endif
...@@ -86,7 +86,6 @@ PyTuple_New(register Py_ssize_t size) ...@@ -86,7 +86,6 @@ PyTuple_New(register Py_ssize_t size)
{ {
return PyErr_NoMemory(); return PyErr_NoMemory();
} }
nbytes += sizeof(PyTupleObject) - sizeof(PyObject *);
op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size); op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size);
if (op == NULL) if (op == NULL)
......
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