Commit 3ef4ac81 authored by Andrew MacIntyre's avatar Andrew MacIntyre

use the correct macro to access list size

parent a59e1a20
...@@ -2264,7 +2264,7 @@ list_fill(PyListObject *result, PyObject *v) ...@@ -2264,7 +2264,7 @@ list_fill(PyListObject *result, PyObject *v)
* subclasses of list, there being nothing to copy. * subclasses of list, there being nothing to copy.
*/ */
if (PyList_CheckExact(v)) { if (PyList_CheckExact(v)) {
i = ((PyListObject*)v)->ob_size; i = PyList_GET_SIZE(v);
if (i == 0) if (i == 0)
return 0; return 0;
if (i > LISTFILL_OPT_THRESHOLD) if (i > LISTFILL_OPT_THRESHOLD)
......
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