From: Andrew MacIntyre Date: Fri, 26 Dec 2003 00:09:04 +0000 (+0000) Subject: use the correct macro to access list size X-Git-Tag: v2.4a1~1044 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=694e3a4a9dd05cf101ff7dc6d5c76bf1771bafa9;p=thirdparty%2FPython%2Fcpython.git use the correct macro to access list size --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 66e4460fe9a8..c630f179e264 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2264,7 +2264,7 @@ list_fill(PyListObject *result, PyObject *v) * subclasses of list, there being nothing to copy. */ if (PyList_CheckExact(v)) { - i = ((PyListObject*)v)->ob_size; + i = PyList_GET_SIZE(v); if (i == 0) return 0; if (i > LISTFILL_OPT_THRESHOLD)