diff Include/unicodeobject.h @ 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 453fd8182c2f
children db5a5080f9b8
line wrap: on
line diff
--- a/Include/unicodeobject.h	Sun Oct 17 20:17:41 2010 +0000
+++ b/Include/unicodeobject.h	Sun Oct 17 20:54:53 2010 +0000
@@ -372,7 +372,7 @@
     PyObject_HEAD
     Py_ssize_t length;          /* Length of raw Unicode data in buffer */
     Py_UNICODE *str;            /* Raw Unicode buffer */
-    long hash;                  /* Hash value; -1 if not set */
+    Py_hash_t hash;             /* Hash value; -1 if not set */
     int state;                  /* != 0 if interned. In this case the two
                                  * references from the dictionary to this object
                                  * are *not* counted in ob_refcnt. */