summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-05-13 06:50:40 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-05-13 06:51:11 +0200
commit36d44bf52f598d31d94343c238ad45d21b63c390 (patch)
tree54fc17e77ba2cf299cce29404b5fdd365edfb72c /src
parentvideo_core/surface: Use u8 for PixelFormat block tables (diff)
downloadyuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar.gz
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar.bz2
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar.lz
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar.xz
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.tar.zst
yuzu-36d44bf52f598d31d94343c238ad45d21b63c390.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/time/time_zone_manager.cpp7
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) {
}
}
-static constexpr int GetMonthLength(bool is_leap_year, int month) {
- constexpr std::array<int, 12> month_lengths{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
- constexpr std::array<int, 12> month_lengths_leap{31, 29, 31, 30, 31, 30,
- 31, 31, 30, 31, 30, 31};
+static constexpr s8 GetMonthLength(bool is_leap_year, int month) {
+ constexpr std::array<s8, 12> month_lengths{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
+ constexpr std::array<s8, 12> month_lengths_leap{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
return is_leap_year ? month_lengths_leap[month] : month_lengths[month];
}