Skip to content

Commit

Permalink
ArtificialErrorEval: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Feb 8, 2023
1 parent 91dd063 commit b3598b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ private static List<String> differences(String s1, String s2) {
fromStart++;
}
int fromEnd = 0;
while (s1.charAt(l1 - 1 - fromEnd) == s2.charAt(l2 - 1 - fromEnd)) {
while (fromEnd < l1 && fromEnd < l2 && s1.charAt(l1 - 1 - fromEnd) == s2.charAt(l2 - 1 - fromEnd)) {
fromEnd++;
}
// corrections (e.g. stress vs stresses)
Expand Down

0 comments on commit b3598b8

Please sign in to comment.