summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 16:08:37 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commit2ca3fc24a1eedda8fb6fed1fa56033717376e0d7 (patch)
tree8879ef7230c6b0c479854c7ca4ead587fbf652ab
parent31975e608326247ba9dd4974c21bd9ce91e7827e (diff)
downloadqtlocation-mapboxgl-2ca3fc24a1eedda8fb6fed1fa56033717376e0d7.tar.gz
[core] Fix bugprone-string-integer-assignment errors
As reported by clang-tidy-8.
-rw-r--r--src/mbgl/storage/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/storage/resource.cpp b/src/mbgl/storage/resource.cpp
index 613a09452b..d909e662b7 100644
--- a/src/mbgl/storage/resource.cpp
+++ b/src/mbgl/storage/resource.cpp
@@ -15,7 +15,7 @@ static std::string getQuadKey(int32_t x, int32_t y, int8_t z) {
int32_t mask;
for (int8_t i = z; i > 0; i--) {
mask = 1 << (i - 1);
- quadKey += '0' + ((x & mask ? 1 : 0) + (y & mask ? 2 : 0));
+ quadKey += static_cast<char>('0' + ((x & mask ? 1 : 0) + (y & mask ? 2 : 0)));
}
return quadKey;
}