fix compiler warning

This commit is contained in:
wmayer
2016-10-31 21:31:35 +01:00
parent 4c004daa62
commit 179c05a42f
4 changed files with 10 additions and 6 deletions

View File

@@ -119,7 +119,10 @@ std::vector<PointKernel::value_type> PointKernel::getValidPoints() const
if (!(boost::math::isnan(it->x) ||
boost::math::isnan(it->y) ||
boost::math::isnan(it->z)))
valid.push_back(value_type(it->x, it->y, it->z));
valid.push_back(value_type(
static_cast<float_type>(it->x),
static_cast<float_type>(it->y),
static_cast<float_type>(it->z)));
}
return valid;
}