diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-10-30 19:16:26 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-10-31 12:41:40 +0200 |
commit | c65465c02e19f191f63e8e6fdb31441b309e1def (patch) | |
tree | 6b20493dd17b9906902ef8b6a91d2ccd68556a1c /src/mbgl/util | |
parent | 8c716fde96054256eb2156f0590738e2bc38566d (diff) | |
download | qtlocation-mapboxgl-c65465c02e19f191f63e8e6fdb31441b309e1def.tar.gz |
[gcc4.9] Keep compatibility with GCC + Android
Needed by Qt builds on Android.
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/tile_cover.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp index c81becb986..39b562d811 100644 --- a/src/mbgl/util/tile_cover.cpp +++ b/src/mbgl/util/tile_cover.cpp @@ -182,10 +182,10 @@ uint64_t tileCount(const LatLngBounds& bounds, uint8_t zoom, uint16_t tileSize_) auto y1 = floor(sw.y/ tileSize_); auto y2 = floor((ne.y - 1) / tileSize_); - auto minX = std::fmax(std::min(x1, x2), 0); + auto minX = ::fmax(std::min(x1, x2), 0); auto maxX = std::max(x1, x2); auto minY = (std::pow(2, zoom) - 1) - std::max(y1, y2); - auto maxY = (std::pow(2, zoom) - 1) - std::fmax(std::min(y1, y2), 0); + auto maxY = (std::pow(2, zoom) - 1) - ::fmax(std::min(y1, y2), 0); return (maxX - minX + 1) * (maxY - minY + 1); } |