Skip to content

Commit

Permalink
Fix error C3016 on MSVC with OpenMP
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
UnaNancyOwen committed Feb 11, 2016
1 parent aa58bc5 commit 2037c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/include/pcl/filters/impl/convolution_3d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pcl::filters::Convolution3D<PointInT, PointOutT, KernelT>::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 (int64_t point_idx = 0; point_idx < static_cast<int64_t> (surface_->size ()); ++point_idx)
{
const PointInT& point_in = surface_->points [point_idx];
PointOutT& point_out = output [point_idx];
Expand Down

0 comments on commit 2037c89

Please sign in to comment.