Skip to content

Commit 41c77da

Browse files
ferdymercuryguitargeek
authored andcommitted
[math] look at node in proper order
Fixes https://its.cern.ch/jira/browse/ROOT-10374
1 parent c2da4d4 commit 41c77da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

math/mathcore/src/TKDTree.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,13 +796,13 @@ void TKDTree<Index, Value>::UpdateRange(Index inode, Value* point, Value range,
796796
}
797797
return;
798798
}
799-
if (point[fAxis[inode]]<=fValue[inode]){
799+
if (point[fAxis[inode]]<fValue[inode]){
800800
//first examine the node that contains the point
801801
UpdateRange(GetLeft(inode),point, range, res);
802802
UpdateRange(GetRight(inode),point, range, res);
803803
} else {
804-
UpdateRange(GetLeft(inode),point, range, res);
805804
UpdateRange(GetRight(inode),point, range, res);
805+
UpdateRange(GetLeft(inode),point, range, res);
806806
}
807807
}
808808

0 commit comments

Comments
 (0)