Skip to content
Snippets Groups Projects
Commit dee72058 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] Rewrite loop to avoid implicit conversions.

parent cfcb826e
No related branches found
No related tags found
No related merge requests found
...@@ -298,11 +298,11 @@ TEST_F(GeoLibOctTree, TestSmallDistanceDifferentLeaves) ...@@ -298,11 +298,11 @@ TEST_F(GeoLibOctTree, TestSmallDistanceDifferentLeaves)
// case where two points with a small distance but different OctTree leaves // case where two points with a small distance but different OctTree leaves
// are inserted // are inserted
double const eps(0.5); double const eps(0.5);
for (int k(-10); k<11; ++k) { for (std::size_t k = 0; k < 21; ++k) {
for (int j(-10); j<11; ++j) { for (std::size_t j = 0; j < 21; ++j) {
std::size_t id((k+10)*21+(j+10)); std::size_t id = k*21+j;
for (int i(-10); i<11; ++i) { for (std::size_t i = 0; i < 21; ++i) {
ps_ptr.push_back(new GeoLib::Point(1.0*i, 1.0*j, 1.0*k, id+i+10)); ps_ptr.push_back(new GeoLib::Point(i-10., j-10., k-10., id+i));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment