Skip to content

Commit 266f93a

Browse files
Add parentheses for clarity
Co-authored-by: Tanner Gooding <[email protected]>
1 parent 1157578 commit 266f93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2764,7 +2764,7 @@ void VisitBitfieldDecl(FieldDecl fieldDecl, BitfieldDesc[] bitfieldDescs, Record
27642764
// Check if type is directly shiftable/maskable
27652765
// Remapped types are not guaranteed to be shiftable or maskable
27662766
// Enums are maskable, but not shiftable
2767-
var isTypeLikelyRemapped = type == typeBacking && typeName != typeNameBacking;
2767+
var isTypeLikelyRemapped = (type == typeBacking) && (typeName != typeNameBacking);
27682768
var isTypeAnEnum = IsType<EnumType>(fieldDecl);
27692769

27702770
// Main cases:

0 commit comments

Comments
 (0)