Fix architecture check in the test

This commit is contained in:
Pavel Punegov
2021-01-11 16:39:31 +03:00
committed by Nikolay Krasko
parent e241d1249c
commit b565562a1f
@@ -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 {