Use Py_TYPE() instead of ->ob_type
This commit is contained in:
parent
66b4ab701b
commit
501dbbfb70
|
@ -129,7 +129,7 @@ mmap_object_dealloc(mmap_object *m_obj)
|
|||
}
|
||||
#endif /* UNIX */
|
||||
|
||||
m_obj->ob_type->tp_free((PyObject*)m_obj);
|
||||
Py_TYPE(m_obj)->tp_free((PyObject*)m_obj);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue