summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-18 07:30:06 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-18 07:30:06 (GMT)
commitd49bf5e8a5b167c38ec3e1df66492198e3f2e8f9 (patch)
tree5e31c6e13fa651c95a20a8e6d3d4ed3ed0964934 /Modules
parent646fdd6c610baa551b6c3807cc61bc79075db092 (diff)
downloadcpython-d49bf5e8a5b167c38ec3e1df66492198e3f2e8f9.zip
cpython-d49bf5e8a5b167c38ec3e1df66492198e3f2e8f9.tar.gz
cpython-d49bf5e8a5b167c38ec3e1df66492198e3f2e8f9.tar.bz2
Fix type of hash function.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
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");