From 57bf5ab000f13668f8d4bf5f9774db546fb8c648 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Fri, 10 Apr 2020 12:53:59 +0300 Subject: [PATCH] Fix testObjCExport compilation on 32-bit platforms --- backend.native/tests/objcexport/values.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.native/tests/objcexport/values.swift b/backend.native/tests/objcexport/values.swift index 594affd173e..8ae7fe998ed 100644 --- a/backend.native/tests/objcexport/values.swift +++ b/backend.native/tests/objcexport/values.swift @@ -1291,7 +1291,7 @@ func testMapsExport() throws { try assertEquals(actual: ValuesKt.mapUShort2Byte()[0x8000], expected: 1) try assertEquals(actual: ValuesKt.mapUInt2Long()[0x7FFFFFFF], expected: 7) // the following samples require explicit cast to KotlinUInt or KotlinULong - try assertEquals(actual: ValuesKt.mapUInt2Long()[KotlinUInt(0x8000_0000)], expected: 8) + try assertEquals(actual: ValuesKt.mapUInt2Long()[KotlinUInt(-0x8000_0000)], expected: 8) _ = ValuesKt.mapULong2Long() as! [KotlinULong: KotlinLong] // test cast var u64: UInt64 = 0x8000_0000_0000_0000 try assertEquals(actual: ValuesKt.mapULong2Long()[KotlinULong(value: u64)], expected: 8)