Skip to content

Commit

Permalink
Fix after automated merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 12, 2021
1 parent b29a191 commit 5399828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/time/date.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ namespace QuantLib {
"no more than 5 weekday in a given (month, year)");
Weekday first = Date(1, m, y).weekday();
Size skip = nth - (dayOfWeek>=first ? 1 : 0);
return {(1 + dayOfWeek + skip * 7) - first, m, y};
return {Day((1 + dayOfWeek + skip * 7) - first), m, y};
}

// month formatting
Expand Down

0 comments on commit 5399828

Please sign in to comment.