Skip to content

Commit

Permalink
Merge pull request #4866 from openstudiocoalition/develop
Browse files Browse the repository at this point in the history
Fix compiler warning treated as error
  • Loading branch information
jmarrec committed Jun 29, 2023
2 parents 2eccd1a + bb5e7f8 commit a69c2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace openstudio {
namespace energyplus {

static unsigned startNewDay(IdfObject& idfObject, unsigned fieldIndex, const Date& date) {
const std::string s = fmt::format("Through: {:02d}/{:02d}", date.monthOfYear().value(), date.dayOfMonth());
const std::string s = fmt::format("Through: {:02d}/{:02d}", month(date.monthOfYear()), date.dayOfMonth());
idfObject.setString(fieldIndex, s);
++fieldIndex;
idfObject.setString(fieldIndex, "For: AllDays");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace openstudio {
namespace energyplus {

static unsigned startNewDay(IdfObject& idfObject, unsigned fieldIndex, const Date& date) {
const std::string s = fmt::format("Through: {:02d}/{:02d}", date.monthOfYear().value(), date.dayOfMonth());
const std::string s = fmt::format("Through: {:02d}/{:02d}", month(date.monthOfYear()), date.dayOfMonth());
idfObject.setString(fieldIndex, s);
++fieldIndex;
idfObject.setString(fieldIndex, "For: AllDays");
Expand Down

0 comments on commit a69c2cb

Please sign in to comment.