Merge pull request #488 from FreddyFunk/cast

point_cloud: Fix compiler warning
This commit is contained in:
FrankGalligan 2020-02-11 09:54:17 -08:00 committed by GitHub
commit eaf457977e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ BoundingBox PointCloud::ComputeBoundingBox() const {
// Consider using pc_att->ConvertValue<float, 3>(i, &p[0]) (Enforced
// transformation from Vector with any dimension to Vector3f)
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]);
bounding_box.update_bounding_box(p);
}