diff Objects/tupleobject.c @ 80822:a8fb68576fa0 3.2

Keep y a Py_hash_t instead of Py_uhash_t as it is compared with == -1 and the compiler logic will do the right thing with just x as a Py_uhash_t. This matches what was already done in the 3.3 version. cleanup only - no functionality or hash values change.
author Gregory P. Smith <greg@krypto.org>
date Mon, 10 Dec 2012 18:34:09 -0800
parents 5c4e440852db
children 11236dacc76f
line wrap: on
line diff
--- a/Objects/tupleobject.c	Mon Dec 10 18:15:46 2012 -0800
+++ b/Objects/tupleobject.c	Mon Dec 10 18:34:09 2012 -0800
@@ -315,7 +315,8 @@
 static Py_hash_t
 tuplehash(PyTupleObject *v)
 {
-    register Py_uhash_t x, y;  /* Unsigned for defined overflow behavior. */
+    register Py_uhash_t x;  /* Unsigned for defined overflow behavior. */
+    register Py_hash_t y;
     register Py_ssize_t len = Py_SIZE(v);
     register PyObject **p;
     Py_uhash_t mult = _PyHASH_MULTIPLIER;