Skip to content

Commit

Permalink
Merge pull request #2161 from OpenDroneMap/master
Browse files Browse the repository at this point in the history
Cast cloud point step as 64-bit integer
  • Loading branch information
taketwo committed Dec 18, 2017
2 parents 415315e + 924ab11 commit 6da7704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/src/ply_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pcl::PLYReader::elementDefinitionCallback (const std::string& element_name, std:
bool
pcl::PLYReader::endHeaderCallback ()
{
cloud_->data.resize (cloud_->point_step * cloud_->width * cloud_->height);
cloud_->data.resize (static_cast<size_t>(cloud_->point_step) * cloud_->width * cloud_->height);
return (cloud_->data.size () == cloud_->point_step * cloud_->width * cloud_->height);
}

Expand Down

0 comments on commit 6da7704

Please sign in to comment.