From 6cc74a1b665c5b27bca3660dad516ca41a591915 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Tue, 12 Jan 2021 13:43:14 +0300 Subject: [PATCH] Better fix for the test: check for NUSInteger size --- 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 0016018d84d..aac1156ba30 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 != CpuArchitecture.X64) { + val hash = if (sizeOf() == 4L) { // `typedef unsigned int NSInteger` on watchOS. foo.hash().toInt() } else {