Skip to content

Commit 0aa56f0

Browse files
committed
Merge branch 'long_hash' of github.com:eendebakpt/cpython into long_hash
2 parents 55e5bd9 + f720557 commit 0aa56f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/longobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3682,13 +3682,13 @@ long_hash(PyObject *obj)
36823682
assert(i>=2);
36833683
--i;
36843684
x = v->long_value.ob_digit[i];
3685-
assert(x < _PyHASH_MODULUS);
3685+
assert(x < PyHASH_MODULUS);
36863686
// unroll second digit
36873687
#if ( PyHASH_BITS > (2 * PyLong_SHIFT) )
36883688
--i;
3689-
x = ((x << PyLong_SHIFT));
3689+
x <<= PyLong_SHIFT;
36903690
x += v->long_value.ob_digit[i];
3691-
assert(x < _PyHASH_MODULUS);
3691+
assert(x < PyHASH_MODULUS);
36923692
#endif
36933693
while (--i >= 0) {
36943694
/* Here x is a quantity in the range [0, _PyHASH_MODULUS); we

0 commit comments

Comments
 (0)