diff options
author | Sergey Yershov <syershov@maps.me> | 2016-10-11 13:12:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 13:12:53 +0300 |
commit | 68abe92ef99a1f8a59a6a295335ebbd92fc160e3 (patch) | |
tree | 818637192da076b3f2910e56a9887a2e0119d22d /drape_frontend | |
parent | 96274f607539f84308def75e6edfae54c29f1069 (diff) | |
parent | fcd5fe3c5f3cf8aff9fe8fbb6b5d3fa4b3702dab (diff) |
Merge pull request #4459 from Dushistov/fix_build_on_linux
fix build with clang/libcxx on linux
Diffstat (limited to 'drape_frontend')
-rw-r--r-- | drape_frontend/text_layout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drape_frontend/text_layout.cpp b/drape_frontend/text_layout.cpp index dd758b09df..a72e7f747e 100644 --- a/drape_frontend/text_layout.cpp +++ b/drape_frontend/text_layout.cpp @@ -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); |