aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-12 17:20:09 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-12 19:03:04 -0400
commita4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca (patch)
treed92f357551808189367fce55dd9c29a474b24932 /src/common/util.c
parent0f58e173134698a813d23288dabc22f2591e9dc2 (diff)
downloadtor-a4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca.tar.gz
tor-a4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca.zip
clang scan-build: Fix "dead increment" warnings.
For the most part, these indicated a spot where the code could have been better.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 36d0f4d068..6e08979ff1 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -445,7 +445,7 @@ tor_log2(uint64_t u64)
r += 2;
}
if (u64 >= (U64_LITERAL(1)<<1)) {
- u64 >>= 1;
+ // u64 >>= 1; // not using this any more.
r += 1;
}
return r;