From e720844ff623c73e24fc72ed9710bdfdac127553 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov <1580082+sbogolepov@users.noreply.github.com> Date: Fri, 14 Dec 2018 17:39:25 +0700 Subject: [PATCH] Fix comparison of booleans. (#2468) --- runtime/src/main/kotlin/kotlin/Boolean.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/kotlin/kotlin/Boolean.kt b/runtime/src/main/kotlin/kotlin/Boolean.kt index 58931d36799..389fb7bb26b 100644 --- a/runtime/src/main/kotlin/kotlin/Boolean.kt +++ b/runtime/src/main/kotlin/kotlin/Boolean.kt @@ -44,7 +44,7 @@ public class Boolean private constructor( @TypedIntrinsic(IntrinsicType.XOR) external public infix fun xor(other: Boolean): Boolean - @TypedIntrinsic(IntrinsicType.SIGNED_COMPARE_TO) + @TypedIntrinsic(IntrinsicType.UNSIGNED_COMPARE_TO) external public override fun compareTo(other: Boolean): Int public fun equals(other: Boolean): Boolean = kotlin.native.internal.areEqualByValue(this, other)