Base: Replace C cast

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

View File

@@ -48,7 +48,7 @@ PyException::PyException(const Py::Object &obj) {
// WARNING: we are assuming that python type object will never be
// destroyed, so we don't keep reference here to save book-keeping in
// our copy constructor and destructor
_exceptionType = (PyObject*)obj.ptr()->ob_type;
_exceptionType = reinterpret_cast<PyObject*>(obj.ptr()->ob_type);
_errorType = obj.ptr()->ob_type->tp_name;
}