Skip to content

Commit e00c9b7

Browse files
committed
quick fix
1 parent 0c197be commit e00c9b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/kotlin/org/evomaster/core/utils/MultiCharacterRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class MultiCharacterRange private constructor(val ranges: List<CharacterRange>)
4848

4949
for ((start, end) in internalRanges.sortedBy { it.start }) {
5050
when {
51-
end < currentStart - 1 -> newInternalRanges += CharacterRange(start, end)
52-
start > currentEnd + 1 -> {
51+
end.code < currentStart.code - 1 -> newInternalRanges += CharacterRange(start, end)
52+
start.code > currentEnd.code + 1 -> {
5353
if (!merged) {
5454
newInternalRanges += CharacterRange(currentStart, currentEnd)
5555
merged = true

0 commit comments

Comments
 (0)