Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d49bf5e

Browse files
committed
Fix type of hash function.
1 parent 646fdd6 commit d49bf5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2478,7 +2478,7 @@ static PyBufferProcs PyCData_as_buffer = {
24782478
/*
24792479
* CData objects are mutable, so they cannot be hashable!
24802480
*/
2481-
static long
2481+
static Py_hash_t
24822482
PyCData_nohash(PyObject *self)
24832483
{
24842484
PyErr_SetString(PyExc_TypeError, "unhashable type");

0 commit comments

Comments
 (0)