Skip to content

Commit

Permalink
Merge pull request #519 from stevennic/Bug_461
Browse files Browse the repository at this point in the history
Resolve Bug #461
  • Loading branch information
fortable1999 authored Dec 25, 2018
2 parents 416e3d9 + 970ef8c commit b5c71f9
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 @@ -286,7 +286,7 @@ 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 aq + bq <= minquality:
while a.is_active() and b.is_active() and aq + bq < minquality:
if aq < bq:
skipped += a.skip_to_quality(minquality - bq)
aq = a.block_quality()
Expand Down Expand Up @@ -516,7 +516,7 @@ 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 aq + bq <= minquality:
while a.is_active() and b.is_active() and aq + bq < minquality:
if aq < bq:
# If the block quality of A is less than B, skip A ahead until
# it can contribute at least the balance of the required min
Expand Down Expand Up @@ -771,7 +771,7 @@ 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 aq + bq <= minquality:
while a.is_active() and b.is_active() and aq + bq < minquality:
if aq < bq:
skipped += a.skip_to_quality(minquality - bq)
aq = a.block_quality()
Expand Down

0 comments on commit b5c71f9

Please sign in to comment.