Skip to content

Commit

Permalink
Automated fixes by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and lballabio committed Feb 12, 2024
1 parent 8c87dc2 commit cbec61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/math/integrals/discreteintegrals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace QuantLib {
sum *= 2;

sum += f(a);
if(n&1)
if((n&1) != 0u)
sum += 1.5*f(b)+2.5*f(b-d);
else
sum += f(b);
Expand Down

0 comments on commit cbec61e

Please sign in to comment.