Skip to content

Commit

Permalink
bpo-39127: Make _Py_HashPointer's argument be const (pythonGH-17690)
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance authored Feb 5, 2020
1 parent 8b6f652 commit 3d06953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Include/pyhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Python/pyhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d06953

Please sign in to comment.