Base: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
544d5a27b8
commit
1972dfe5a3
@@ -393,7 +393,7 @@ PyObject *PyObjectBase::_getattr(const char *attr)
|
||||
// Note: We must return the type object here,
|
||||
// so that our own types feel as really Python objects
|
||||
Py_INCREF(Py_TYPE(this));
|
||||
return (PyObject *)(Py_TYPE(this));
|
||||
return reinterpret_cast<PyObject *>(Py_TYPE(this));
|
||||
}
|
||||
else if (streq(attr, "__members__")) {
|
||||
// Use __dict__ instead as __members__ is deprecated
|
||||
|
||||
Reference in New Issue
Block a user