Opt-in to use unsigned types in various internal utils
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalUnsignedTypes::class)
|
||||
package kotlin.internal
|
||||
|
||||
// (a - b) mod c
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalUnsignedTypes::class)
|
||||
package kotlin
|
||||
|
||||
internal fun uintCompare(v1: Int, v2: Int): Int = (v1 xor Int.MIN_VALUE).compareTo(v2 xor Int.MIN_VALUE)
|
||||
|
||||
Reference in New Issue
Block a user