E5F4
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6f652 commit 3d06953Copy full SHA for 3d06953
Include/pyhash.h
@@ -8,7 +8,7 @@ extern "C" {
8
/* Helpers for hash functions */
9
#ifndef Py_LIMITED_API
10
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
11
-PyAPI_FUNC(Py_hash_t) _Py_HashPointer(void*);
+PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*);
12
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);
13
#endif
14
Python/pyhash.c
@@ -129,7 +129,7 @@ _Py_HashDouble(double v)
129
}
130
131
Py_hash_t
132
-_Py_HashPointer(void *p)
+_Py_HashPointer(const void *p)
133
{
134
Py_hash_t x;
135
size_t y = (size_t)p;
0 commit comments