]> granicus.if.org Git - python/commitdiff
Minor code clean-up.
authorRaymond Hettinger <python@rcn.com>
Sat, 16 May 2015 00:53:52 +0000 (17:53 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 16 May 2015 00:53:52 +0000 (17:53 -0700)
Modules/_heapqmodule.c

index 88c35cf32eec3d16f0285867fa9e5342951fe956..6767feb9f2c116df6e568151c564058252c43805 100644 (file)
@@ -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;
 }