[Python-checkins] python/dist/src/Objects listobject.c,2.171,2.172
aimacintyre at users.sourceforge.net
aimacintyre at users.sourceforge.net
Thu Dec 25 19:09:06 EST 2003
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv21959
Modified Files:
listobject.c
Log Message:
use the correct macro to access list size
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.171
retrieving revision 2.172
diff -C2 -d -r2.171 -r2.172
*** listobject.c 25 Dec 2003 13:27:20 -0000 2.171
--- listobject.c 26 Dec 2003 00:09:04 -0000 2.172
***************
*** 2265,2269 ****
*/
if (PyList_CheckExact(v)) {
! i = ((PyListObject*)v)->ob_size;
if (i == 0)
return 0;
--- 2265,2269 ----
*/
if (PyList_CheckExact(v)) {
! i = PyList_GET_SIZE(v);
if (i == 0)
return 0;
More information about the Python-checkins
mailing list