Skip to content

Commit c6e060d

Browse files
Apply suggestions from code review
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent b0fd0d8 commit c6e060d

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
@@ -3679,14 +3679,14 @@ long_hash(PyObject *obj)
36793679

36803680
// unroll first digit
36813681
Py_BUILD_ASSERT(PyHASH_BITS > PyLong_SHIFT);
3682-
assert(i>=1);
3682+
assert(i >= 1);
36833683
--i;
36843684
x = v->long_value.ob_digit[i];
36853685
assert(x < PyHASH_MODULUS);
36863686

3687-
#if ( PyHASH_BITS > (2 * PyLong_SHIFT) )
3687+
#if PyHASH_BITS >= 2 * PyLong_SHIFT
36883688
// unroll second digit
3689-
assert(i>=1);
3689+
assert(i >= 1);
36903690
--i;
36913691
x <<= PyLong_SHIFT;
36923692
x += v->long_value.ob_digit[i];

0 commit comments

Comments
 (0)