forked from organicmaps/organicmaps
Merge pull request #4459 from Dushistov/fix_build_on_linux
fix build with clang/libcxx on linux
This commit is contained in:
commit
68abe92ef9
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ void PathTextLayout::CalculatePositions(vector<float> & offsets, float splineLen
|
|||
}
|
||||
else
|
||||
{
|
||||
double const textCount = max(floor(pathLength / minPeriodSize), 1.0);
|
||||
double const textCount = max(floor(static_cast<double>(pathLength / minPeriodSize)), 1.0);
|
||||
double const glbTextLen = splineLength / textCount;
|
||||
for (double offset = 0.5 * glbTextLen; offset < splineLength; offset += glbTextLen)
|
||||
offsets.push_back(offset);
|
||||
|
|
Loading…
Add table
Reference in a new issue