mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-07-30 08:11:58 +08:00
Merge pull request #488 from FreddyFunk/cast
point_cloud: Fix compiler warning
This commit is contained in:
commit
eaf457977e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user