From b565562a1f7f2263b7b9baa2b7408323f0291fb2 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Mon, 11 Jan 2021 16:39:31 +0300 Subject: [PATCH] Fix architecture check in the test --- kotlin-native/backend.native/tests/interop/objc/smoke.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/tests/interop/objc/smoke.kt b/kotlin-native/backend.native/tests/interop/objc/smoke.kt index 9bcb39c394b..0016018d84d 100644 --- a/kotlin-native/backend.native/tests/interop/objc/smoke.kt +++ b/kotlin-native/backend.native/tests/interop/objc/smoke.kt @@ -67,7 +67,7 @@ fun run() { // hashCode (directly): // hash() returns value of NSUInteger type. - val hash = if (Platform.osFamily == OsFamily.WATCHOS && Platform.cpuArchitecture.bitness == 32) { + val hash = if (Platform.osFamily == OsFamily.WATCHOS && Platform.cpuArchitecture != CpuArchitecture.X64) { // `typedef unsigned int NSInteger` on watchOS. foo.hash().toInt() } else {