Code clean-up: Py_TYPE(self)->tp_name instead of ((PyObject *)self)->ob_type->tp_name.

This commit is contained in:
2013-02-22 01:29:50 +00:00
parent b4e968391d
commit 6cd036ab96
3 changed files with 3 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ PyDoc_STRVAR(Interface1D_name_doc,
static PyObject *Interface1D_name_get(BPy_Interface1D *self, void *UNUSED(closure))
{
return PyUnicode_FromString(((PyObject *)self)->ob_type->tp_name);
return PyUnicode_FromString(Py_TYPE(self)->tp_name);
}
PyDoc_STRVAR(Interface1D_id_doc,