]> granicus.if.org Git - python/commitdiff
Fix type of hash function.
authorGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:30:06 +0000 (07:30 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:30:06 +0000 (07:30 +0000)
Modules/_ctypes/_ctypes.c

index aaf46eac68bcb9971afb9f40f6a860956375223b..c074574e361099fea097678280c5d22cf61004f6 100644 (file)
@@ -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");