diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-03-01 16:05:23 +0000 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-03-01 21:39:36 +0000 |
commit | 9346a6d038ee24b6cfd0bd39e311b5e00673c06e (patch) | |
tree | 6599a21846bcdf37342f70f955f6a67596705951 /include/mbgl/util | |
parent | c6757b9a9b004c566c9ff0b0715d336e668e1410 (diff) | |
download | qtlocation-mapboxgl-9346a6d038ee24b6cfd0bd39e311b5e00673c06e.tar.gz |
[core] Avoid precompute overscaling for TileID
Plus type change for zoom and removed redundant inlines.
Diffstat (limited to 'include/mbgl/util')
-rw-r--r-- | include/mbgl/util/string.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/util/string.hpp b/include/mbgl/util/string.hpp index bc6b3b1eff..6c2433534e 100644 --- a/include/mbgl/util/string.hpp +++ b/include/mbgl/util/string.hpp @@ -22,6 +22,11 @@ inline std::string toString(int8_t num) { return boost::lexical_cast<std::string>(int(num)); } +// boost::lexical_cast() treats this as a character, but we are using it as number types. +inline std::string toString(uint8_t num) { + return boost::lexical_cast<std::string>(unsigned(num)); +} + inline std::string toString(std::exception_ptr error) { try { std::rethrow_exception(error); |