Skip to content

Commit

Permalink
Don't apply unary minus to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 2, 2024
1 parent c0681c4 commit fabef3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Bonds/Bonds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(int, char* []) {

Date settlementDate(18, September, 2008);

Natural settlementDays = 3;
Integer settlementDays = 3;

Date todaysDate = calendar.advance(settlementDate, -settlementDays, Days);
Settings::instance().evaluationDate() = todaysDate;
Expand Down

0 comments on commit fabef3b

Please sign in to comment.