Skip to content

Commit

Permalink
Fix LT-20351: index out of bounds per Andy Black
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmaxwell3 committed Sep 5, 2024
1 parent a9ed995 commit cb024ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SIL.Machine/FiniteState/Fst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ out IEnumerable<FstResult<TData, TOffset>> results
int annIndex = traversalMethod.Annotations.IndexOf(start);

var initAnns = new HashSet<int>();
while (annIndex < traversalMethod.Annotations.Count)
while (annIndex < traversalMethod.Annotations.Count && annIndex > -1)
{
var initRegisters = new Register<TOffset>[_registerCount, 2];

Expand Down

0 comments on commit cb024ef

Please sign in to comment.