Base: Replace C cast

This commit is contained in:
marioalexis
2022-06-24 16:31:56 -03:00
committed by Chris Hennes
parent 544d5a27b8
commit 1972dfe5a3
4 changed files with 12 additions and 12 deletions

View File

@@ -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