diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-03-07 06:17:09 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:13:02 +0300 |
commit | 2a0b7c51aaf3d980c96376ebaf0aae8aee0d7f54 (patch) | |
tree | da20f6e5b857d45199a7ec35db1e5b6cb14aaa44 /indexer/geometry_coding.cpp | |
parent | db5ecf18246d24795715422cfa821ca01aad0b99 (diff) |
Fixed compilation warnings
Diffstat (limited to 'indexer/geometry_coding.cpp')
-rw-r--r-- | indexer/geometry_coding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/geometry_coding.cpp b/indexer/geometry_coding.cpp index 987315fc1b..7c17f3c29f 100644 --- a/indexer/geometry_coding.cpp +++ b/indexer/geometry_coding.cpp @@ -14,8 +14,8 @@ namespace template <typename T> inline m2::PointU ClampPoint(m2::PointU const & maxPoint, m2::Point<T> const & point) { - return m2::PointU(my::clamp(static_cast<uint32_t>(point.x), 0, maxPoint.x), - my::clamp(static_cast<uint32_t>(point.y), 0, maxPoint.y)); + 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)); } } |