mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-39127: Make _Py_HashPointer's argument be const (GH-17690)
This commit is contained in:
parent
8b6f6526f8
commit
3d06953c34
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ extern "C" {
|
||||||
/* Helpers for hash functions */
|
/* Helpers for hash functions */
|
||||||
#ifndef Py_LIMITED_API
|
#ifndef Py_LIMITED_API
|
||||||
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
|
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);
|
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ _Py_HashDouble(double v)
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_hash_t
|
Py_hash_t
|
||||||
_Py_HashPointer(void *p)
|
_Py_HashPointer(const void *p)
|
||||||
{
|
{
|
||||||
Py_hash_t x;
|
Py_hash_t x;
|
||||||
size_t y = (size_t)p;
|
size_t y = (size_t)p;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue