diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-23 12:09:09 +0200 |
commit | 37802eec36aae3cb84c7f73a48652d9959489243 (patch) | |
tree | 6e5b869babc4e1d23171a9f470b9c822b1c77cae /src/mbgl/renderer/buckets/symbol_bucket.cpp | |
parent | 991cfee7df24acf50893c669d3a135e474945e97 (diff) | |
download | qtlocation-mapboxgl-37802eec36aae3cb84c7f73a48652d9959489243.tar.gz |
[core] Fix performance-type-promotion-in-math-fn errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/renderer/buckets/symbol_bucket.cpp')
-rw-r--r-- | src/mbgl/renderer/buckets/symbol_bucket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/buckets/symbol_bucket.cpp b/src/mbgl/renderer/buckets/symbol_bucket.cpp index 1858f29801..de32d5ea49 100644 --- a/src/mbgl/renderer/buckets/symbol_bucket.cpp +++ b/src/mbgl/renderer/buckets/symbol_bucket.cpp @@ -281,8 +281,8 @@ SymbolInstanceReferences SymbolBucket::getSortedSymbols(const float angle) const const float cos = std::cos(angle); std::sort(result.begin(), result.end(), [sin, cos](const SymbolInstance& a, const SymbolInstance& b) { - const auto aRotated = ::lround(sin * a.anchor.point.x + cos * a.anchor.point.y); - const auto bRotated = ::lround(sin * b.anchor.point.x + cos * b.anchor.point.y); + const auto aRotated = std::lround(sin * a.anchor.point.x + cos * a.anchor.point.y); + const auto bRotated = std::lround(sin * b.anchor.point.x + cos * b.anchor.point.y); if (aRotated != bRotated) { return aRotated < bRotated; } |