From 924ab1137fbfa3004f222fb0834e3d66881ec057 Mon Sep 17 00:00:00 2001 From: Dakota Benjamin Date: Mon, 18 Dec 2017 08:45:24 -0500 Subject: [PATCH] Cast cloud point step as 64-bit integer --- io/src/ply_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }