diff options
author | Guido van Rossum <guido@python.org> | 2002-08-12 19:25:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-12 19:25:08 (GMT) |
commit | 3747a0f04c1dbe5abb47ce80abea39ed02c01aa2 (patch) | |
tree | 2378cb207d95f71a33c1645f8c0128925229751f /Objects | |
parent | ad47da072a436751c0cfd95a21eccea1c39b35f1 (diff) | |
download | cpython-3747a0f04c1dbe5abb47ce80abea39ed02c01aa2.zip cpython-3747a0f04c1dbe5abb47ce80abea39ed02c01aa2.tar.gz cpython-3747a0f04c1dbe5abb47ce80abea39ed02c01aa2.tar.bz2 |
Fix MSVC warnings.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 766318e..bb05e6b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -940,9 +940,9 @@ subtype_getweakref(PyObject *obj, void *context) } assert(obj->ob_type->tp_weaklistoffset > 0); assert(obj->ob_type->tp_weaklistoffset + sizeof(PyObject *) <= - obj->ob_type->tp_basicsize); + (size_t)(obj->ob_type->tp_basicsize)); weaklistptr = (PyObject **) - ((void *)obj + obj->ob_type->tp_weaklistoffset); + ((char *)obj + obj->ob_type->tp_weaklistoffset); if (*weaklistptr == NULL) result = Py_None; else |