Commit 9093cb0
fix(bm25): clamp startPos in skipTo to prevent negative sort.Search length
Defensive hardening from GPT-5 review: if inBlockPos exceeds block length
after next() reaches end of block, the sort.Search span could go negative.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 3503a9c commit 9093cb0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
0 commit comments