Fix conversion warnings

This commit is contained in:
Simon Giraudot 2018-06-19 10:13:58 +02:00
parent 3bb2ef96df
commit b28a548b8e
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ public:
{
for (int j = 0; j < 3; ++ j)
for (std::size_t i = 0; i < m_scales.size(); ++ i)
features.add_with_scale_id<Eigenvalue> (i, m_range, eigen(i), std::size_t(j));
features.add_with_scale_id<Eigenvalue> (i, m_range, eigen(i), (unsigned int)(j));
for (std::size_t i = 0; i < m_scales.size(); ++ i)
features.add_with_scale_id<Verticality> (i, m_range, eigen(i));
}

View File

@ -374,7 +374,7 @@ public:
{
for (int j = 0; j < 3; ++ j)
for (std::size_t i = 0; i < m_scales.size(); ++ i)
features.add_with_scale_id<Eigenvalue> (i, m_input, eigen(i), std::size_t(j));
features.add_with_scale_id<Eigenvalue> (i, m_input, eigen(i), (unsigned int)(j));
for (std::size_t i = 0; i < m_scales.size(); ++ i)
features.add_with_scale_id<Distance_to_plane> (i, m_input, m_point_map, eigen(i));
for (std::size_t i = 0; i < m_scales.size(); ++ i)