summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-05-16 00:53:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-05-16 00:53:52 (GMT)
commitd69755d1a3b778e9e367c96769f348d1eb0c630c (patch)
treeb665977ba349f6f9f30aa64bb08d24dbfee87043
parent29655df11d48d3b2bfdb9b06be79ed512d292c83 (diff)
downloadcpython-d69755d1a3b778e9e367c96769f348d1eb0c630c.zip
cpython-d69755d1a3b778e9e367c96769f348d1eb0c630c.tar.gz
cpython-d69755d1a3b778e9e367c96769f348d1eb0c630c.tar.bz2
Minor code clean-up.
-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;
}