[Python-checkins] cpython: Minor code clean-up.
raymond.hettinger
python-checkins at python.org
Sat May 16 02:53:59 CEST 2015
https://hg.python.org/cpython/rev/e03987f2d274
changeset: 96068:e03987f2d274
user: Raymond Hettinger <python at rcn.com>
date: Fri May 15 17:53:52 2015 -0700
summary:
Minor code clean-up.
files:
Modules/_heapqmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
--- 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;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list