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 & offsets, float splineLen } else { - double const textCount = max(floor(pathLength / minPeriodSize), 1.0); + double const textCount = max(floor(static_cast(pathLength / minPeriodSize)), 1.0); double const glbTextLen = splineLength / textCount; for (double offset = 0.5 * glbTextLen; offset < splineLength; offset += glbTextLen) offsets.push_back(offset);