Commit 8b54f1ee authored by Guido van Rossum's avatar Guido van Rossum

Fix MSVC warnings.

parent ab5e2d06
...@@ -940,9 +940,9 @@ subtype_getweakref(PyObject *obj, void *context) ...@@ -940,9 +940,9 @@ subtype_getweakref(PyObject *obj, void *context)
} }
assert(obj->ob_type->tp_weaklistoffset > 0); assert(obj->ob_type->tp_weaklistoffset > 0);
assert(obj->ob_type->tp_weaklistoffset + sizeof(PyObject *) <= assert(obj->ob_type->tp_weaklistoffset + sizeof(PyObject *) <=
obj->ob_type->tp_basicsize); (size_t)(obj->ob_type->tp_basicsize));
weaklistptr = (PyObject **) weaklistptr = (PyObject **)
((void *)obj + obj->ob_type->tp_weaklistoffset); ((char *)obj + obj->ob_type->tp_weaklistoffset);
if (*weaklistptr == NULL) if (*weaklistptr == NULL)
result = Py_None; result = Py_None;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment