diff Objects/codeobject.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 6b8314376de2
children 3bf4d9f1660a
line wrap: on
line diff
--- a/Objects/codeobject.c	Sun Oct 17 20:17:41 2010 +0000
+++ b/Objects/codeobject.c	Sun Oct 17 20:54:53 2010 +0000
@@ -417,10 +417,10 @@
     return res;
 }
 
-static long
+static Py_hash_t
 code_hash(PyCodeObject *co)
 {
-    long h, h0, h1, h2, h3, h4, h5, h6;
+    Py_hash_t h, h0, h1, h2, h3, h4, h5, h6;
     h0 = PyObject_Hash(co->co_name);
     if (h0 == -1) return -1;
     h1 = PyObject_Hash(co->co_code);