Skip to content

Commit

Permalink
Fix true and false for the Bool marshaller (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Sep 29, 2020
1 parent ebf31e6 commit 37705c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ public IEnumerable<StatementSyntax> 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)
{
}
}

internal class WinBoolMarshaller : BoolMarshallerBase
{
public WinBoolMarshaller()
: base(PredefinedType(Token(SyntaxKind.IntKeyword)), 0, 1)
: base(PredefinedType(Token(SyntaxKind.IntKeyword)), trueValue: 1, falseValue: 0)
{
}
}
Expand Down

0 comments on commit 37705c3

Please sign in to comment.