summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-10-30 19:16:26 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-10-31 12:41:40 +0200
commitc65465c02e19f191f63e8e6fdb31441b309e1def (patch)
tree6b20493dd17b9906902ef8b6a91d2ccd68556a1c /include
parent8c716fde96054256eb2156f0590738e2bc38566d (diff)
downloadqtlocation-mapboxgl-c65465c02e19f191f63e8e6fdb31441b309e1def.tar.gz
[gcc4.9] Keep compatibility with GCC + Android
Needed by Qt builds on Android.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/projection.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/util/projection.hpp b/include/mbgl/util/projection.hpp
index f64502c5bc..1613af3b36 100644
--- a/include/mbgl/util/projection.hpp
+++ b/include/mbgl/util/projection.hpp
@@ -92,8 +92,8 @@ public:
const double t2z = tileSize * std::pow(2, zoom);
Point<double> pt = project_(point, t2z);
// Flip y coordinate
- auto x = std::round(std::min(pt.x, t2z));
- auto y = std::round(std::min(t2z - pt.y, t2z));
+ auto x = ::round(std::min(pt.x, t2z));
+ auto y = ::round(std::min(t2z - pt.y, t2z));
return { x, y };
}
private: