Skip to content

Commit 93c7e5d

Browse files
committed
Comment fix.
1 parent 27edb07 commit 93c7e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ class LeapYearGuardCondition extends GuardCondition {
596596
// Cannonical case:
597597
// form: `(year % 4 == 0) && (year % 100 != 0 || year % 400 == 0)`
598598
// or : `!((year % 4 == 0) && (year % 100 != 0 || year % 400 == 0))`
599-
// Also accepting `(year & 3 == 0) && (year % 100 != 0 || year % 400 == 0)`
599+
// Also accepting `((year & 3) == 0) && (year % 100 != 0 || year % 400 == 0)`
600600
this = andExpr and
601601
andExpr.hasOperands(div4Check, orExpr) and
602602
orExpr.hasOperands(div100Check, div400Check) and

0 commit comments

Comments
 (0)