summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_heapqmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
index 88c35cf..6767feb 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;
}