E5F4 bpo-39127: Make _Py_HashPointer's argument be const (GH-17690) · python/cpython@3d06953 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d06953

Browse files
authored
bpo-39127: Make _Py_HashPointer's argument be const (GH-17690)
1 parent 8b6f652 commit 3d06953

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/pyhash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "C" {
88
/* Helpers for hash functions */
99
#ifndef Py_LIMITED_API
1010
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
11-
PyAPI_FUNC(Py_hash_t) _Py_HashPointer(void*);
11+
PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*);
1212
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);
1313
#endif
1414

Python/pyhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ _Py_HashDouble(double v)
129129
}
130130

131131
Py_hash_t
132-
_Py_HashPointer(void *p)
132+
_Py_HashPointer(const void *p)
133133
{
134134
Py_hash_t x;
135135
size_t y = (size_t)p;

0 commit comments

Comments
 (0)
0