Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51caee6 commit db6e290Copy full SHA for db6e290
1 file changed
cpp/ql/src/Likely Bugs/Leap Year/LeapYear.qll
@@ -59,8 +59,7 @@ abstract class LeapYearFieldAccess extends YearFieldAccess {
59
(
60
op instanceof AssignArithmeticOperation or
61
exists(BinaryArithmeticOperation bao | bao = op.getAnOperand()) or
62
- op instanceof PostfixCrementOperation or
63
- op instanceof PrefixCrementOperation
+ op instanceof CrementOperation
64
)
65
66
}
@@ -117,9 +116,7 @@ abstract class LeapYearFieldAccess extends YearFieldAccess {
117
116
118
119
or
120
- op instanceof PostfixCrementOperation
121
- or
122
123
124
125
0 commit comments