Mailing List Archive

python/dist/src/Objects typeobject.c,2.172,2.173
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv24028

Modified Files:
typeobject.c
Log Message:
Fix MSVC warnings.

Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.172
retrieving revision 2.173
diff -C2 -d -r2.172 -r2.173
*** typeobject.c 12 Aug 2002 19:05:44 -0000 2.172
--- typeobject.c 12 Aug 2002 19:25:08 -0000 2.173
***************
*** 941,947 ****
assert(obj->ob_type->tp_weaklistoffset > 0);
assert(obj->ob_type->tp_weaklistoffset + sizeof(PyObject *) <=
! obj->ob_type->tp_basicsize);
weaklistptr = (PyObject **)
! ((void *)obj + obj->ob_type->tp_weaklistoffset);
if (*weaklistptr == NULL)
result = Py_None;
--- 941,947 ----
assert(obj->ob_type->tp_weaklistoffset > 0);
assert(obj->ob_type->tp_weaklistoffset + sizeof(PyObject *) <=
! (size_t)(obj->ob_type->tp_basicsize));
weaklistptr = (PyObject **)
! ((char *)obj + obj->ob_type->tp_weaklistoffset);
if (*weaklistptr == NULL)
result = Py_None;