Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit ee2661a

Browse files
Dereference that pointer
1 parent 8795561 commit ee2661a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftReflector/MarshalEngineCSafeSwiftToCSharp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public List<ICodeElement> MarshalFromLambdaReceiverToCSFunc (CSType thisType, st
8282
throw ErrorHelper.CreateError (ReflectorError.kTypeMapBase + 27, "Inconceivable! The protocol type for a subscript was NOT a CSSimpleType!");
8383
use.AddIfNotPresent (typeof (StructMarshal));
8484
use.AddIfNotPresent (typeof (SwiftObjectRegistry));
85-
valueExpr = new CSFunctionCall ($"SwiftObjectRegistry.Registry.InterfaceForExistentialContainer<{csParmType.ToString ()}>", false, valueID);
85+
valueExpr = new CSFunctionCall ($"SwiftObjectRegistry.Registry.InterfaceForExistentialContainer<{csParmType.ToString ()}>", false, CSUnaryExpression.Star (valueID));
8686
} else if ((entityType == EntityType.Struct || entityType == EntityType.Enum) && !isUnusualNewValue) {
8787
var csParmType = new CSSimpleType (entity.SharpNamespace + "." + entity.SharpTypeName);
8888
if (csParmType == null)

0 commit comments

Comments
 (0)