diff options
author | vng <viktor.govako@gmail.com> | 2011-03-24 23:03:23 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:14:11 +0300 |
commit | 3d208531a70cc4931ce21840a223f5f050221916 (patch) | |
tree | d24891206ce21d9f8e728bddc943261d599d70d4 /indexer/geometry_coding.cpp | |
parent | cf0c478f2350a3d0840b7becc14a5cae6d41c203 (diff) |
Some minor fixes.
Diffstat (limited to 'indexer/geometry_coding.cpp')
-rw-r--r-- | indexer/geometry_coding.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indexer/geometry_coding.cpp b/indexer/geometry_coding.cpp index 7c17f3c29f..502ff17d6c 100644 --- a/indexer/geometry_coding.cpp +++ b/indexer/geometry_coding.cpp @@ -14,8 +14,9 @@ namespace template <typename T> inline m2::PointU ClampPoint(m2::PointU const & maxPoint, m2::Point<T> const & point) { - return m2::PointU(my::clamp(static_cast<m2::PointU::value_type>(point.x), static_cast<m2::PointU::value_type>(0), maxPoint.x), - my::clamp(static_cast<m2::PointU::value_type>(point.y), static_cast<m2::PointU::value_type>(0), maxPoint.y)); + typedef m2::PointU::value_type uvalue_t; + return m2::PointU(my::clamp(static_cast<uvalue_t>(point.x), static_cast<uvalue_t>(0), maxPoint.x), + my::clamp(static_cast<uvalue_t>(point.y), static_cast<uvalue_t>(0), maxPoint.y)); } } |