Skip to content

Commit

Permalink
Fixing warning for integer/double comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
auto-differentiation-dev committed Oct 5, 2023
1 parent 5ddeb72 commit bc12e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-suite/libormarketmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void LiborMarketModelTest::testSimpleCovarianceModels() {

for (Size k=0; k<size; ++k) {
Real expected = 0;
if (k>2*t) {
if (static_cast<Real>(k) > 2 * t) {
const Real T = fixingTimes[k];
expected=(a*(T-t)+d)*std::exp(-b*(T-t)) + c;
}
Expand Down

0 comments on commit bc12e98

Please sign in to comment.