diff options
-rw-r--r-- | Include/pyhash.h | 2 | ||||
-rw-r--r-- | Python/pyhash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/pyhash.h b/Include/pyhash.h index dbcc9744be..2f398589ce 100644 --- a/Include/pyhash.h +++ b/Include/pyhash.h @@ -8,7 +8,7 @@ extern "C" { /* Helpers for hash functions */ #ifndef Py_LIMITED_API PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double); -PyAPI_FUNC(Py_hash_t) _Py_HashPointer(void*); +PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*); PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t); #endif diff --git a/Python/pyhash.c b/Python/pyhash.c index 4c0b929586..d381dc0230 100644 --- a/Python/pyhash.c +++ b/Python/pyhash.c @@ -129,7 +129,7 @@ _Py_HashDouble(double v) } Py_hash_t -_Py_HashPointer(void *p) +_Py_HashPointer(const void *p) { Py_hash_t x; size_t y = (size_t)p; |