Merge pull request #4459 from Dushistov/fix_build_on_linux

fix build with clang/libcxx on linux
This commit is contained in:
Sergey Yershov 2016-10-11 13:12:53 +03:00 committed by GitHub
commit 68abe92ef9

View file

@ -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);