Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 24762:ccf66a1aa0b8 legacy-trunk
Fix MSVC warnings.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 12 Aug 2002 19:25:08 +0000 |
| parents | e0431d9c4474 |
| children | 4de9ac0e4173 |
line wrap: on
line diff
--- a/Objects/typeobject.c Mon Aug 12 19:05:44 2002 +0000 +++ b/Objects/typeobject.c Mon Aug 12 19:25:08 2002 +0000 @@ -940,9 +940,9 @@ } 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
