diff options
author | Dmitrii Morozov <dmitrii.morozov@sbb.ch> | 2025-06-23 13:37:33 +0200 |
---|---|---|
committer | Dmitrii Morozov <dmitrii.morozov@sbb.ch> | 2025-06-23 13:37:33 +0200 |
commit | 37bb33ee55a098880adcf8f8efbcc7265853dc5e (patch) | |
tree | c1dfcee62d382dce17216737ac6e61043718d20d /index.html | |
parent | 09d3308ad4c39e137a7e2741b45a487b0bbf1791 (diff) |
Diffstat (limited to 'index.html')
-rwxr-xr-x | index.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ let j = 0; for (let i = 0; i < targetCount; i++) { - while (j < distances.length - 1 && distances[j+1] < targetDist) j++; + while (j < distances.length - 2 && distances[j+1] < targetDist) j++; const d1 = distances[j]; const d2 = distances[j+1]; |