From: Georg Brandl Date: Mon, 18 Oct 2010 07:30:06 +0000 (+0000) Subject: Fix type of hash function. X-Git-Tag: v3.2a4~447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d49bf5e8a5b167c38ec3e1df66492198e3f2e8f9;p=thirdparty%2FPython%2Fcpython.git Fix type of hash function. --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index aaf46eac68bc..c074574e3610 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");