Better fix for the test: check for NUSInteger size
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user