Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
xgbuils committed Sep 27, 2015
1 parent db66113 commit df64bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function sink(current, size) {
while (current < size) {
var largest = current
var left = (2 * current) + 1
var right = (2 * current) + 2
var right = left + 1

if (left < size && _compare.call(this, left, largest) >= 0) {
largest = left
Expand Down

0 comments on commit df64bd6

Please sign in to comment.