This commit is contained in:
DBotThePony 2025-03-14 19:32:04 +07:00
parent 2943026dd5
commit 4ab667b37e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -87,7 +87,7 @@ class IntRange2Set private constructor(private val first: Int, private val last:
}
override fun isEmpty(): Boolean {
return last > first
return last < first
}
override fun toArray(a: IntArray?): IntArray {
@ -158,7 +158,7 @@ class IntRange2Set private constructor(private val first: Int, private val last:
}
override val size: Int
get() = if (last > first) 0 else last - first + 1
get() = if (last < first) 0 else last - first + 1
override fun toString(): String {
if (isEmpty())