projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710ac67
)
Fix inclusive vs. exclusive error in binary search.
author
Dan Vanderkam
<danvdk@gmail.com>
Fri, 6 Mar 2015 23:04:45 +0000
(18:04 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Fri, 6 Mar 2015 23:04:45 +0000
(18:04 -0500)
Fixes #554
extras/synchronizer.js
patch
|
blob
|
blame
|
history
diff --git
a/extras/synchronizer.js
b/extras/synchronizer.js
index
f39209b
..
cbe26d2
100644
(file)
--- a/
extras/synchronizer.js
+++ b/
extras/synchronizer.js
@@
-200,7
+200,7
@@
function dygraphsBinarySearch(g, xVal) {
var low = 0,
high = g.numRows() - 1;
- while (low < high) {
+ while (low <
=
high) {
var idx = (high + low) >> 1;
var x = g.getValue(idx, 0);
if (x < xVal) {