Skip to content

Commit 2934ff5

Browse files
authored
fix MSVS not supporting unsigned int in for loop with openMP (#5666)
1 parent 3b13f59 commit 2934ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/src/real_sense_2_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ namespace pcl
299299
default(none) \
300300
shared(cloud, cloud_texture_ptr, cloud_vertices_ptr, mapColorFunc)
301301
#endif
302-
for (std::size_t index = 0; index < cloud->size (); ++index)
302+
for (std::ptrdiff_t index = 0; index < static_cast<std::ptrdiff_t>(cloud->size()); ++index)
303303
{
304304
const auto ptr = cloud_vertices_ptr + index;
305305
const auto uvptr = cloud_texture_ptr + index;

0 commit comments

Comments
 (0)