We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6a44d commit 857cfb4Copy full SHA for 857cfb4
astar.js
@@ -388,7 +388,7 @@ BinaryHeap.prototype = {
388
// Do the same checks for the other child.
389
if (child2N < length) {
390
child2 = content[child2N];
391
- if ( scoreFunction(child2) < (swap >= 0 ? elemScore : child1Score)) {
+ if ( scoreFunction(child2) < (swap < 0 ? elemScore : child1Score)) {
392
swap = child2N;
393
}
394
0 commit comments