Skip to content

Commit

Permalink
No assumptions regarding fields.size()
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Sep 28, 2019
1 parent d1592f3 commit e057089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/pcl_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pcl::PCLBase<pcl::PCLPointCloud2>::setInputCloud (const PCLPointCloud2ConstPtr &
{
input_ = cloud;

for (int d = 0; d < static_cast<int>(cloud->fields.size ()); ++d)
for (std::size_t d = 0; d < cloud->fields.size (); ++d)
{
if (cloud->fields[d].name == x_field_name_)
x_idx_ = d;
Expand Down

0 comments on commit e057089

Please sign in to comment.