From 45e229242db450b3ae38ecbd0af45e67f4f62bc7 Mon Sep 17 00:00:00 2001 From: Tsukasa Sugiura Date: Wed, 10 Feb 2016 00:32:30 +0900 Subject: [PATCH] Fix error C3016 on MSVC with OpenMP MSVC doesn't support an OpenMP versions earlier higher than 2.0. The index variable in an OpenMP 2.0 for statement must be a signed integral type. --- filters/include/pcl/filters/impl/convolution_3d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/include/pcl/filters/impl/convolution_3d.hpp b/filters/include/pcl/filters/impl/convolution_3d.hpp index dbc585c55d9..5e64213cc8d 100644 --- a/filters/include/pcl/filters/impl/convolution_3d.hpp +++ b/filters/include/pcl/filters/impl/convolution_3d.hpp @@ -240,7 +240,7 @@ pcl::filters::Convolution3D::convolve (PointCloudO #ifdef _OPENMP #pragma omp parallel for shared (output) private (nn_indices, nn_distances) num_threads (threads_) #endif - for (std::size_t point_idx = 0; point_idx < surface_->size (); ++point_idx) + for (long long point_idx = 0; point_idx < static_cast (surface_->size ()); ++point_idx) { const PointInT& point_in = surface_->points [point_idx]; PointOutT& point_out = output [point_idx];