From 2adbd0b716b662c359965079db3b03d0ea7a3836 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Sun, 9 Apr 2023 11:47:31 -0700 Subject: [PATCH] Ensure the constructor uses the right name --- sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index 56220986..1e875239 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -438,7 +438,7 @@ static void GenerateNativeBitfieldAttribute(PInvokeGenerator generator, Stream? sw.WriteLine(" /// The offset of the bitfield that was used in the native signature."); sw.WriteLine(" /// The length of the bitfield that was used in the native signature."); sw.Write(indentString); - sw.WriteLine(" public NativeTypeNameAttribute(string name, int offset, int length)"); + sw.WriteLine(" public NativeBitfieldAttribute(string name, int offset, int length)"); sw.Write(indentString); sw.WriteLine(" {"); sw.Write(indentString);