diff --git a/include/boost/date_time/gregorian/greg_date.hpp b/include/boost/date_time/gregorian/greg_date.hpp index 4f56bedf1..448ea90fa 100644 --- a/include/boost/date_time/gregorian/greg_date.hpp +++ b/include/boost/date_time/gregorian/greg_date.hpp @@ -120,7 +120,7 @@ namespace gregorian { date end_of_month() const { ymd_type ymd = year_month_day(); - short eom_day = gregorian_calendar::end_of_month_day(ymd.year, ymd.month); + unsigned short eom_day = gregorian_calendar::end_of_month_day(ymd.year, ymd.month); return date(ymd.year, ymd.month, eom_day); }