summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-12-26 00:09:04 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-12-26 00:09:04 (GMT)
commit694e3a4a9dd05cf101ff7dc6d5c76bf1771bafa9 (patch)
tree2b763c8c84e340fd81fa29fa34657e56c04ef3c2 /Objects/listobject.c
parentf72af655c5ba41b6358656aafbe4ddeaf5a962ba (diff)
downloadcpython-694e3a4a9dd05cf101ff7dc6d5c76bf1771bafa9.zip
cpython-694e3a4a9dd05cf101ff7dc6d5c76bf1771bafa9.tar.gz
cpython-694e3a4a9dd05cf101ff7dc6d5c76bf1771bafa9.tar.bz2
use the correct macro to access list size
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 66e4460..c630f17 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)