diff --git a/Objects/methodobject.c b/Objects/methodobject.c index ec98de492a9..9e91f609a86 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -180,7 +180,7 @@ meth_hash(a) if (x == -1) return -1; } - y = _Py_HashPointer(a->m_ml->ml_meth); + y = _Py_HashPointer((void*)(a->m_ml->ml_meth)); if (y == -1) return -1; x ^= y;