diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 16:08:37 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 23:37:44 +0300 |
commit | 2ca3fc24a1eedda8fb6fed1fa56033717376e0d7 (patch) | |
tree | 8879ef7230c6b0c479854c7ca4ead587fbf652ab | |
parent | 31975e608326247ba9dd4974c21bd9ce91e7827e (diff) | |
download | qtlocation-mapboxgl-2ca3fc24a1eedda8fb6fed1fa56033717376e0d7.tar.gz |
[core] Fix bugprone-string-integer-assignment errors
As reported by clang-tidy-8.
-rw-r--r-- | src/mbgl/storage/resource.cpp | 2 |
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; } |