diff Objects/methodobject.c @ 65494:e8969fb822fc

make hashes always the size of pointers; introduce Py_hash_t #9778
author Benjamin Peterson <benjamin@python.org>
date Sun, 17 Oct 2010 20:54:53 +0000
parents cab14be0ada1
children d0b0fcbb40db
line wrap: on
line diff
--- a/Objects/methodobject.c	Sun Oct 17 20:17:41 2010 +0000
+++ b/Objects/methodobject.c	Sun Oct 17 20:54:53 2010 +0000
@@ -224,10 +224,10 @@
     return res;
 }
 
-static long
+static Py_hash_t
 meth_hash(PyCFunctionObject *a)
 {
-    long x,y;
+    Py_hash_t x, y;
     if (a->m_self == NULL)
         x = 0;
     else {