fix bug with shadowing 'finishIdx' value, when we still wanted access to both the previous and the new 'finishIdx'

This commit is contained in:
2025-09-29 21:21:06 +01:00
parent df78e20cb7
commit 64c16a7c25

View File

@@ -259,20 +259,20 @@ struct
, startIdx
, finishIdx
)
| VALID finishIdx =>
| VALID foundIdx =>
let
val acc = PersistentVector.append (startIdx, finishIdx, acc)
val acc = PersistentVector.append (startIdx, foundIdx, acc)
in
loop
( strIdx + 1
( foundIdx + 1
, hd
, tl
, prevStrings
, origNfa
, origNfa
, acc
, absIdx + 1
, absIdx + 1
, foundIdx + 1
, foundIdx + 1
, finishIdx
)
end