From 217b6cfa6017427a5afbb6d9655ef2e868dbb5da Mon Sep 17 00:00:00 2001 From: John T Maxwell III Date: Mon, 30 Sep 2024 04:04:26 -0700 Subject: [PATCH] Fix original LT-20351 (#248) --- src/SIL.Machine/FiniteState/Fst.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SIL.Machine/FiniteState/Fst.cs b/src/SIL.Machine/FiniteState/Fst.cs index fbec0291e..f56d8f86d 100644 --- a/src/SIL.Machine/FiniteState/Fst.cs +++ b/src/SIL.Machine/FiniteState/Fst.cs @@ -368,7 +368,7 @@ out IEnumerable> results int annIndex = traversalMethod.Annotations.IndexOf(start); var initAnns = new HashSet(); - while (annIndex < traversalMethod.Annotations.Count) + while (annIndex < traversalMethod.Annotations.Count && annIndex > -1) { var initRegisters = new Register[_registerCount, 2];