From d49bf5e8a5b167c38ec3e1df66492198e3f2e8f9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 18 Oct 2010 07:30:06 +0000 Subject: Fix type of hash function. --- Modules/_ctypes/_ctypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index aaf46ea..c074574 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -2478,7 +2478,7 @@ static PyBufferProcs PyCData_as_buffer = { /* * CData objects are mutable, so they cannot be hashable! */ -static long +static Py_hash_t PyCData_nohash(PyObject *self) { PyErr_SetString(PyExc_TypeError, "unhashable type"); -- cgit v0.12