diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/result.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/result.go b/src/result.go index 1212cabe..d72de420 100644 --- a/src/result.go +++ b/src/result.go @@ -80,7 +80,7 @@ func buildResult(item *Item, offsets []Offset, score int) Result { if criterion == byBegin { val = util.AsUint16(minEnd - whitePrefixLen) } else { - val = util.AsUint16(math.MaxUint16 - math.MaxUint16*(maxEnd-whitePrefixLen)/int(item.TrimLength())) + val = util.AsUint16(math.MaxUint16 - math.MaxUint16*(maxEnd-whitePrefixLen)/int(item.TrimLength()+1)) } } } |