diff --git a/gpu/octree/src/cuda/octree_iterator.hpp b/gpu/octree/src/cuda/octree_iterator.hpp index 87fbfc45604..86753c262a5 100644 --- a/gpu/octree/src/cuda/octree_iterator.hpp +++ b/gpu/octree/src/cuda/octree_iterator.hpp @@ -118,7 +118,7 @@ namespace pcl { if (length > 1) { - lenght--; + length--; node_idx++; break; } diff --git a/gpu/octree/src/utils/priority_octree_iterator.hpp b/gpu/octree/src/utils/priority_octree_iterator.hpp index c3486add867..bcd616c6d8c 100644 --- a/gpu/octree/src/utils/priority_octree_iterator.hpp +++ b/gpu/octree/src/utils/priority_octree_iterator.hpp @@ -74,7 +74,7 @@ namespace pcl { if (length > 1) { - lenght--; + length--; node_idx++; break; } diff --git a/simulation/src/range_likelihood.cpp b/simulation/src/range_likelihood.cpp index e0e7e9b2687..dca919f0e5c 100644 --- a/simulation/src/range_likelihood.cpp +++ b/simulation/src/range_likelihood.cpp @@ -539,7 +539,7 @@ costFunction4(float ref_val,float depth_val) float proportion = 0.999f; float lhood = proportion + (1-proportion)*(top/bottom); - // safety fix that seems to be required due to opengl asyschronizate + // safety fix that seems to be required due to opengl asynchronization // ask hordur about this if (bottom == 0) {