diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-12 22:32:27 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 23:32:06 +0300 |
commit | c81e228c26457c24a2e3d99765c7a8735ec5a32c (patch) | |
tree | 6bda8e9cb29b2f52447c5c804a53ff647b108774 | |
parent | 6e22de8cced45f13bb04e4f35b9ed46f38d2365d (diff) | |
download | qtlocation-mapboxgl-c81e228c26457c24a2e3d99765c7a8735ec5a32c.tar.gz |
[tidy] Check modernize-loop-convert
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-loop-convert.html
-rw-r--r-- | src/mbgl/util/math.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/math.cpp b/src/mbgl/util/math.cpp index 0e86849ad3..438b66a020 100644 --- a/src/mbgl/util/math.cpp +++ b/src/mbgl/util/math.cpp @@ -11,8 +11,8 @@ uint32_t ceil_log2(uint64_t x) { uint32_t y = (((x & (x - 1)) == 0) ? 0 : 1); uint32_t j = 32; - for (int32_t i = 0; i < 6; i++) { - const uint32_t k = (((x & t[i]) == 0) ? 0 : j); + for (const auto& i : t) { + const uint32_t k = (((x & i) == 0) ? 0 : j); y += k; x >>= k; j >>= 1; |