We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a162da2 commit 4f9fc76Copy full SHA for 4f9fc76
Objects/longobject.c
@@ -3682,6 +3682,10 @@ long_hash(PyObject *obj)
3682
--i;
3683
x = v->long_value.ob_digit[i];
3684
assert(x < _PyHASH_MODULUS);
3685
+ --i;
3686
+ x = ((x << PyLong_SHIFT));
3687
+ x += v->long_value.ob_digit[i];
3688
+ assert(x < _PyHASH_MODULUS);
3689
3690
while (--i >= 0) {
3691
/* Here x is a quantity in the range [0, _PyHASH_MODULUS); we
0 commit comments