We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27edb07 commit 93c7e5dCopy full SHA for 93c7e5d
cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.ql
@@ -596,7 +596,7 @@ class LeapYearGuardCondition extends GuardCondition {
596
// Cannonical case:
597
// form: `(year % 4 == 0) && (year % 100 != 0 || year % 400 == 0)`
598
// or : `!((year % 4 == 0) && (year % 100 != 0 || year % 400 == 0))`
599
- // Also accepting `(year & 3 == 0) && (year % 100 != 0 || year % 400 == 0)`
+ // Also accepting `((year & 3) == 0) && (year % 100 != 0 || year % 400 == 0)`
600
this = andExpr and
601
andExpr.hasOperands(div4Check, orExpr) and
602
orExpr.hasOperands(div100Check, div400Check) and
0 commit comments