Better fix for the test: check for NUSInteger size

This commit is contained in:
Pavel Punegov
2021-01-12 13:43:14 +03:00
committed by Nikolay Krasko
parent 9807a92fa7
commit 6cc74a1b66
@@ -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<NSUIntegerVar>() == 4L) {
// `typedef unsigned int NSInteger` on watchOS.
foo.hash().toInt()
} else {