2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

Fix a typo which cause many tests crash.

[SVN r52133]
This commit is contained in:
Haoyu Bai
2009-04-02 16:40:48 +00:00
parent 60ed8e57c1
commit ce3992ce52

View File

@@ -717,7 +717,7 @@ void* instance_holder::allocate(PyObject* self_, std::size_t holder_offset, std:
void instance_holder::deallocate(PyObject* self_, void* storage) throw()
{
assert(Py_TYPE((self_)) == &class_metatype_object);
assert(Py_TYPE(Py_TYPE(self_)) == &class_metatype_object);
objects::instance<>* self = (objects::instance<>*)self_;
if (storage != (char*)self + Py_SIZE(self))
{