diff --git a/drape/stipple_pen_resource.hpp b/drape/stipple_pen_resource.hpp index 73c3624526..769debdded 100644 --- a/drape/stipple_pen_resource.hpp +++ b/drape/stipple_pen_resource.hpp @@ -22,7 +22,7 @@ uint32_t constexpr kMaxStipplePenLength = 512; /// @todo Should be equal with k // Based on ./data/patterns.txt, the most of patterns have 2 entries (4 entries for triangles pattern). using PenPatternT = buffer_vector; -inline constexpr uint16_t PatternFloat2Pixel(double d) +inline uint16_t PatternFloat2Pixel(double d) { return static_cast(std::round(d)); }