diff --git a/io/src/ply_io.cpp b/io/src/ply_io.cpp index ec805d9b65e..c01c2a325c0 100644 --- a/io/src/ply_io.cpp +++ b/io/src/ply_io.cpp @@ -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(cloud_->point_step) * cloud_->width * cloud_->height); return (cloud_->data.size () == cloud_->point_step * cloud_->width * cloud_->height); }