Skip to content

Commit a6be61e

Browse files
committed
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.
1 parent 27cbcd6 commit a6be61e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Objects/tupleobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ tuplerepr(PyTupleObject *v)
315315
static Py_hash_t
316316
tuplehash(PyTupleObject *v)
317317
{
318-
register Py_uhash_t x, y; /* Unsigned for defined overflow behavior. */
318+
register Py_uhash_t x; /* Unsigned for defined overflow behavior. */
319+
register Py_hash_t y;
319320
register Py_ssize_t len = Py_SIZE(v);
320321
register PyObject **p;
321322
Py_uhash_t mult = _PyHASH_MULTIPLIER;

0 commit comments

Comments
 (0)