From ce3992ce523e5a74fa751f5429c170b53d9f4d59 Mon Sep 17 00:00:00 2001 From: Haoyu Bai Date: Thu, 2 Apr 2009 16:40:48 +0000 Subject: [PATCH] Fix a typo which cause many tests crash. [SVN r52133] --- src/object/class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/class.cpp b/src/object/class.cpp index 12ff7301..3170bb10 100644 --- a/src/object/class.cpp +++ b/src/object/class.cpp @@ -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)) {