Skip to content

Commit

Permalink
Use TypePrinter.IntPtrType in CSharpSources.cs code from previous com…
Browse files Browse the repository at this point in the history
…mit.
  • Loading branch information
tritao committed Jul 21, 2023
1 parent ce3d04a commit 3c31179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generators/CSharp/CSharpSources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ private bool GenerateVariableGetter(Variable var)
ptr = $"*{ptr}";
pointerType = pointerType.Pointee.Desugar() as PointerType;
}
ptr = $"(IntPtr*)({ptr})";
ptr = $"({TypePrinter.IntPtrType}*)({ptr})";
}

var arrayType = var.Type.Desugar() as ArrayType;
Expand Down

0 comments on commit 3c31179

Please sign in to comment.