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.

(cherry picked from commit 3c31179)
  • Loading branch information
tritao authored and JordanL8 committed Aug 29, 2023
1 parent a120b88 commit 6def133
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 @@ -1318,7 +1318,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 6def133

Please sign in to comment.