diff --git a/dtool/src/interrogatedb/py_panda.cxx b/dtool/src/interrogatedb/py_panda.cxx index 76733237a8..362f5ec6ca 100644 --- a/dtool/src/interrogatedb/py_panda.cxx +++ b/dtool/src/interrogatedb/py_panda.cxx @@ -736,7 +736,7 @@ PyObject *Dtool_AddToDictionary(PyObject *self1, PyObject *args) { Py_hash_t DTOOL_PyObject_HashPointer(PyObject *self) { if (self != nullptr && DtoolInstance_Check(self)) { - return (Py_hash_t)DtoolInstance_VOID_PTR(self); + return (Py_hash_t)(intptr_t)DtoolInstance_VOID_PTR(self); } return -1; }