Skip to content

Commit

Permalink
Merge pull request #16 from ZeroCool940711/main
Browse files Browse the repository at this point in the history
Correct FP rounding errors
  • Loading branch information
ZeroCool940711 authored Jan 3, 2024
2 parents 99fb4df + 82f39f5 commit 0330b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/whoosh/matching/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ def skip_to_quality(self, minquality):
skipped = 0
aq = a.block_quality()
bq = b.block_quality()
while a.is_active() and b.is_active() and max(aq, bq) <= minquality:
if aq <= minquality:
while a.is_active() and b.is_active() and max(aq, bq) < minquality:
if aq < minquality:
skipped += a.skip_to_quality(minquality)
aq = a.block_quality()
if bq <= minquality:
if bq < minquality:
skipped += b.skip_to_quality(minquality)
bq = b.block_quality()
return skipped
Expand Down

0 comments on commit 0330b24

Please sign in to comment.