Fix compilation warning on MSVC 2015

This commit is contained in:
rdb 2018-03-30 20:15:13 +02:00
parent 30cf1dbbb1
commit 84915073e1

View File

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