point_cloud: Fix compiler warning

This commit is contained in:
Frederic Laing 2018-12-06 14:17:09 +01:00
parent e9337d1faa
commit 52d2f4c09f

View File

@ -246,7 +246,7 @@ BoundingBox PointCloud::ComputeBoundingBox() const {
// Consider using pc_att->ConvertValue<float, 3>(i, &p[0]) (Enforced // Consider using pc_att->ConvertValue<float, 3>(i, &p[0]) (Enforced
// transformation from Vector with any dimension to Vector3f) // transformation from Vector with any dimension to Vector3f)
Vector3f p; Vector3f p;
for (AttributeValueIndex i(0); i < pc_att->size(); ++i) { for (AttributeValueIndex i(0); i < static_cast<uint32_t>(pc_att->size()); ++i) {
pc_att->GetValue(i, &p[0]); pc_att->GetValue(i, &p[0]);
bounding_box.update_bounding_box(p); bounding_box.update_bounding_box(p);
} }