Skip to content

Commit b9a487d

Browse files
committed
fix assert
1 parent c1a3184 commit b9a487d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3685,7 +3685,7 @@ long_hash(PyObject *obj)
36853685
assert(x < PyHASH_MODULUS);
36863686
// unroll second digit
36873687
#if ( PyHASH_BITS > (2 * PyLong_SHIFT) )
3688-
assert(i>=2);
3688+
assert(i>=1);
36893689
--i;
36903690
x <<= PyLong_SHIFT;
36913691
x += v->long_value.ob_digit[i];

0 commit comments

Comments
 (0)