From d69755d1a3b778e9e367c96769f348d1eb0c630c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 15 May 2015 17:53:52 -0700 Subject: [PATCH] Minor code clean-up. --- Modules/_heapqmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 88c35cf32ee..6767feb9f2c 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; }