]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix an error on AIX by using a proper cast.
authorGuido van Rossum <guido@python.org>
Fri, 30 Jun 2000 22:46:04 +0000 (22:46 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 30 Jun 2000 22:46:04 +0000 (22:46 +0000)
Objects/methodobject.c

index ec98de492a9af07dba95c8f633c2c2ec108fa035..9e91f609a86be45dd50b33300b5106befb9c361c 100644 (file)
@@ -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;