Skip to content

Commit

Permalink
Re: Address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aothms committed Mar 14, 2024
1 parent 41ca30f commit 0ad12d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ifcgeom/kernels/cgal/CgalConversionResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ OpaqueCoordinate<3> ifcopenshell::geometry::CgalShape::position()
p[i] += it->cartesian(i);
}
}
Kernel_::FT N(CGAL::Gmpq(std::distance(shape_->points_begin(), shape_->points_end())));
CGAL::Gmpq val(std::distance(shape_->points_begin(), shape_->points_end()));
Kernel_::FT N(val);
for (int i = 0; i < 3; ++i) {
p[i] /= N;
}
Expand Down

0 comments on commit 0ad12d1

Please sign in to comment.