Skip to content

Commit 14abb51

Browse files
authored
Merge pull request #40 from PAIR-code/fix-of-iterator
Fix of iterator
2 parents 5472393 + 3237365 commit 14abb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function euclideanRandomProjectionSplit(
217217
// Populate the arrays with indices according to which side they fell on
218218
nLeft = 0;
219219
nRight = 0;
220-
for (let i in utils.range(side.length)) {
220+
for (let i = 0; i < side.length; i++) {
221221
if (side[i] === 0) {
222222
indicesLeft[nLeft] = indices[i];
223223
nLeft += 1;

0 commit comments

Comments
 (0)