diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 88c35cf32ee..6767feb9f2c 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -261,8 +261,8 @@ keep_top_bit(Py_ssize_t n) int i = 0; while (n > 1) { - i += 1; n >>= 1; + i++; } return n << i; }