Opt-in to use unsigned types in various internal utils

This commit is contained in:
Ilya Gorbunov
2018-07-19 02:01:02 +03:00
parent db7f4bb402
commit e2310343d4
2 changed files with 2 additions and 0 deletions
@@ -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)