Skip to content

Commit 3c31179

Browse files
committed
Use TypePrinter.IntPtrType in CSharpSources.cs code from previous commit.
1 parent ce3d04a commit 3c31179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ private bool GenerateVariableGetter(Variable var)
12931293
ptr = $"*{ptr}";
12941294
pointerType = pointerType.Pointee.Desugar() as PointerType;
12951295
}
1296-
ptr = $"(IntPtr*)({ptr})";
1296+
ptr = $"({TypePrinter.IntPtrType}*)({ptr})";
12971297
}
12981298

12991299
var arrayType = var.Type.Desugar() as ArrayType;

0 commit comments

Comments
 (0)