From e650d7decf80287e523c818f79ba24d5a0777291 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 14 Aug 2013 00:23:14 +0100 Subject: [PATCH] Desugar pointer types when checking for primitive types while marshaling. --- src/Generator/Generators/CSharp/CSharpMarshal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpMarshal.cs b/src/Generator/Generators/CSharp/CSharpMarshal.cs index 8185e53d..641622eb 100644 --- a/src/Generator/Generators/CSharp/CSharpMarshal.cs +++ b/src/Generator/Generators/CSharp/CSharpMarshal.cs @@ -136,7 +136,7 @@ namespace CppSharp.Generators.CSharp } PrimitiveType primitive; - if (pointee.IsPrimitiveType(out primitive)) + if (pointee.Desugar().IsPrimitiveType(out primitive)) { Context.Return.Write(Context.ReturnVarName); return true;