提交 c9ad8710 编写于 作者: S SHIINA Hideaki

Error occurs when findNeighbors() returns no point.(Indent adjustment)

上级 7ecbb09b
......@@ -349,9 +349,9 @@ public:
count += n;
indices[i].resize(n);
dists[i].resize(n);
if (n > 0) {
if (n > 0) {
resultSet.copy(&indices[i][0], &dists[i][0], n, params.sorted);
}
}
}
}
else {
......@@ -365,9 +365,9 @@ public:
if ((int)n>params.max_neighbors) n = params.max_neighbors;
indices[i].resize(n);
dists[i].resize(n);
if (n > 0) {
if (n > 0) {
resultSet.copy(&indices[i][0], &dists[i][0], n, params.sorted);
}
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册