Skip to content

Commit a85e373

Browse files
committed
fix bug of the index list that is not sorted when multiple initial states and rules are added at the same time
1 parent 7f53eb7 commit a85e373

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/KaSa_rep/frontend/diff.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ let extract index_list list =
461461
| h :: t, _ :: b -> aux (h :: t) (i + 1) b acc
462462
| _, [] -> assert false
463463
in
464-
aux index_list 0 (*List.rev*) list []
464+
aux (List.sort compare index_list) 0 list []
465465

466466
let cut diff (ast : Ast.parsing_compil) =
467467
let rules = extract diff.diff_rules.new_elt ast.Ast.rules in

0 commit comments

Comments
 (0)