don't use certain STL functions
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
This commit is contained in:
@@ -140,11 +140,11 @@ double TransformState::getMinZoom() const {
|
||||
double test_y = y;
|
||||
constrain(test_scale, test_y);
|
||||
|
||||
return std::log2(std::fmin(min_scale, test_scale));
|
||||
return ::log2(::fmin(min_scale, test_scale));
|
||||
}
|
||||
|
||||
double TransformState::getMaxZoom() const {
|
||||
return std::log2(max_scale);
|
||||
return ::log2(max_scale);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user