Skip to content

Commit

Permalink
fix: off-by-one error in new biltrans (closes #186)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Aug 15, 2024
1 parent b120c0f commit a2dbb18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ(2.52)

m4_define([PKG_VERSION_MAJOR], [3])
m4_define([PKG_VERSION_MINOR], [7])
m4_define([PKG_VERSION_PATCH], [11])
m4_define([PKG_VERSION_PATCH], [12])

# Bump if the ABI (not API) changed in a backwards-incompatible manner
m4_define([PKG_VERSION_ABI], [3])
Expand Down
2 changes: 1 addition & 1 deletion lttoolbox/fst_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ FSTProcessor::bilingual(InputFile& input, UFILE *output, GenerationMode mode)
}
}
// if there are no tags, we only return complete matches
if (!seenTags && queue_start < symbols.size()) result.clear();
if (!seenTags && queue_start + 1 < symbols.size()) result.clear();

UString source;
size_t queue_pos = 0;
Expand Down

0 comments on commit a2dbb18

Please sign in to comment.