From f632bb74a6c64af368621f7f5aab2543816e1243 Mon Sep 17 00:00:00 2001 From: Andreas Bircher Date: Tue, 28 Nov 2017 09:35:27 -0500 Subject: [PATCH] make ci happy --- src/TerrainTile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TerrainTile.cc b/src/TerrainTile.cc index 38a1d277e..7fd390f59 100644 --- a/src/TerrainTile.cc +++ b/src/TerrainTile.cc @@ -141,8 +141,8 @@ float TerrainTile::elevation(const QGeoCoordinate& coordinate) const if (_isValid) { qCDebug(TerrainTileLog) << "elevation: " << coordinate << " , in sw " << _southWest << " , ne " << _northEast; // Get the index at resolution of 1 arc second - int indexLat = round((coordinate.latitude() - _southWest.latitude()) * (gridSize - 1) / QGCMapEngine::srtm1TileSize); - int indexLon = round((coordinate.longitude() - _southWest.longitude()) * (gridSize - 1) / QGCMapEngine::srtm1TileSize); + int indexLat = qRound(static_cast((coordinate.latitude() - _southWest.latitude()) * (gridSize - 1) / QGCMapEngine::srtm1TileSize)); + int indexLon = qRound(static_cast((coordinate.longitude() - _southWest.longitude()) * (gridSize - 1) / QGCMapEngine::srtm1TileSize)); qCDebug(TerrainTileLog) << "indexLat:indexLon" << indexLat << indexLon; // TODO (birchera): Move this down to the next debug output, once this is all properly working. Q_ASSERT(indexLat >= 0); Q_ASSERT(indexLat < gridSize); -- 2.22.0