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 {