Skip to content

Commit

Permalink
Merge branch 'Binary-search-alg-improvement' of https://github.com/gj…
Browse files Browse the repository at this point in the history
…anblaszczyk/hls.js into Binary-search-alg-improvement
  • Loading branch information
gjanblaszczyk committed May 11, 2016
2 parents b42efb5 + d9b2f86 commit b460aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/binary-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var BinarySearch = {
if (comparisonResult > 0) {
minIndex = currentIndex + 1;
}
else if (comparisonResult < 0) {
else if (comparisonResult < 0 && currentIndex) {
maxIndex = currentIndex - 1;
}
else {
Expand Down

0 comments on commit b460aed

Please sign in to comment.