Skip to content

Commit b8e5a16

Browse files
committed
[sample_consensus] Fix sign-compare warning in Ellipse3D model
Correct loop index type to Eigen::Index to match signedness of .size() and satisfy strict CI compiler flags.
1 parent a3ea2c7 commit b8e5a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample_consensus/src/sac_model_ellipse3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ namespace pcl
319319

320320
// Iterate through the 3D points and calculate the distances from them to the ellipse
321321
distances.resize (x.size ());
322-
for (std::size_t i = 0; i < x.size (); ++i)
322+
for (Eigen::Index i = 0; i < x.size (); ++i)
323323
{
324324
float th_opt;
325325
const Eigen::Vector3f p (x [i], y [i], z [i]);

0 commit comments

Comments
 (0)