diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/time/time_zone_manager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp index 449a5ac96..eeec34436 100644 --- a/src/core/hle/service/time/time_zone_manager.cpp +++ b/src/core/hle/service/time/time_zone_manager.cpp | |||
| @@ -110,10 +110,9 @@ static constexpr s64 GetLeapDaysFromYear(s64 year) { | |||
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | static constexpr int GetMonthLength(bool is_leap_year, int month) { | 113 | static constexpr s8 GetMonthLength(bool is_leap_year, int month) { |
| 114 | constexpr std::array<int, 12> month_lengths{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | 114 | constexpr std::array<s8, 12> month_lengths{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
| 115 | constexpr std::array<int, 12> month_lengths_leap{31, 29, 31, 30, 31, 30, | 115 | constexpr std::array<s8, 12> month_lengths_leap{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
| 116 | 31, 31, 30, 31, 30, 31}; | ||
| 117 | return is_leap_year ? month_lengths_leap[month] : month_lengths[month]; | 116 | return is_leap_year ? month_lengths_leap[month] : month_lengths[month]; |
| 118 | } | 117 | } |
| 119 | 118 | ||