[Python-checkins] r85681 - python/branches/py3k/Modules/_ctypes/_ctypes.c

georg.brandl python-checkins at python.org
Mon Oct 18 09:30:06 CEST 2010


Author: georg.brandl
Date: Mon Oct 18 09:30:06 2010
New Revision: 85681

Log:
Fix type of hash function.

Modified:
   python/branches/py3k/Modules/_ctypes/_ctypes.c

Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/_ctypes.c	(original)
+++ python/branches/py3k/Modules/_ctypes/_ctypes.c	Mon Oct 18 09:30:06 2010
@@ -2478,7 +2478,7 @@
 /*
  * 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");


More information about the Python-checkins mailing list