We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61769b3 commit ef65f7bCopy full SHA for ef65f7b
sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitStmt.cs
@@ -45,7 +45,7 @@ private void VisitBinaryOperator(BinaryOperator binaryOperator)
45
if (binaryOperator.IsShiftOp || binaryOperator.IsShiftAssignOp)
46
{
47
// RHS of shift operation in C# must be an int
48
- if (binaryOperator.RHS.Type.Kind is CXType_Int or CXType_Long)
+ if (binaryOperator.RHS.Type.Kind is CXType_Int || (binaryOperator.RHS.Type.Kind is CXType_Long && !_config.GenerateUnixTypes))
49
50
Visit(binaryOperator.RHS);
51
}
0 commit comments