Fix Unsigned long type encoding according to the ObjC encode rules
This commit is contained in:
committed by
Nikolay Krasko
parent
b565562a1f
commit
9807a92fa7
+1
-1
@@ -1595,7 +1595,7 @@ internal fun ObjCExportCodeGenerator.getEncoding(methodBridge: MethodBridge): St
|
||||
private fun MethodBridge.ReturnValue.getObjCEncoding(context: Context): String = when (this) {
|
||||
MethodBridge.ReturnValue.Suspend,
|
||||
MethodBridge.ReturnValue.Void -> "v"
|
||||
MethodBridge.ReturnValue.HashCode -> if (context.is64BitNSInteger()) "L" else "I"
|
||||
MethodBridge.ReturnValue.HashCode -> if (context.is64BitNSInteger()) "Q" else "I"
|
||||
is MethodBridge.ReturnValue.Mapped -> this.bridge.objCEncoding
|
||||
MethodBridge.ReturnValue.WithError.Success -> ObjCValueType.BOOL.encoding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user