Minor code clean-up.
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 @@
     int i = 0;
 
     while (n > 1) {
-        i += 1;
         n >>= 1;
+        i++;
     }
     return n << i;
 }