Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <syershov@maps.me>2016-10-11 13:12:53 +0300
committerGitHub <noreply@github.com>2016-10-11 13:12:53 +0300
commit68abe92ef99a1f8a59a6a295335ebbd92fc160e3 (patch)
tree818637192da076b3f2910e56a9887a2e0119d22d /drape_frontend
parent96274f607539f84308def75e6edfae54c29f1069 (diff)
parentfcd5fe3c5f3cf8aff9fe8fbb6b5d3fa4b3702dab (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.cpp2
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);