diff --git a/DllImportGenerator/DllImportGenerator/Marshalling/BoolMarshaller.cs b/DllImportGenerator/DllImportGenerator/Marshalling/BoolMarshaller.cs index 14599fab49d6..a0416bbf730c 100644 --- a/DllImportGenerator/DllImportGenerator/Marshalling/BoolMarshaller.cs +++ b/DllImportGenerator/DllImportGenerator/Marshalling/BoolMarshaller.cs @@ -105,7 +105,7 @@ public IEnumerable Generate(TypePositionInfo info, StubCodeCont internal class CBoolMarshaller : BoolMarshallerBase { public CBoolMarshaller() - : base(PredefinedType(Token(SyntaxKind.ByteKeyword)), 0, 1) + : base(PredefinedType(Token(SyntaxKind.ByteKeyword)), trueValue: 1, falseValue: 0) { } } @@ -113,7 +113,7 @@ public CBoolMarshaller() internal class WinBoolMarshaller : BoolMarshallerBase { public WinBoolMarshaller() - : base(PredefinedType(Token(SyntaxKind.IntKeyword)), 0, 1) + : base(PredefinedType(Token(SyntaxKind.IntKeyword)), trueValue: 1, falseValue: 0) { } }