mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 23:13:47 +00:00
committed by
Konstantin Pastbin
parent
a28d5d15ce
commit
2aaf37e9ee
@@ -180,7 +180,7 @@ int GetTileScaleBase(m2::RectD const & r)
|
||||
{
|
||||
double const sz = std::max(r.SizeX(), r.SizeY());
|
||||
ASSERT_GREATER(sz, 0., ("Rect should not be a point:", r));
|
||||
return std::max(1l, std::lround(std::log2(mercator::Bounds::kRangeX / sz)));
|
||||
return std::max(1, static_cast<int>(std::lround(std::log2(mercator::Bounds::kRangeX / sz))));
|
||||
}
|
||||
|
||||
double GetTileScaleBase(double drawScale)
|
||||
|
||||
Reference in New Issue
Block a user