diff options
author | Lioncash <mathew1800@gmail.com> | 2020-04-17 04:23:56 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-04-17 04:23:59 +0200 |
commit | 337f2dc11fefba337020e1b8d16e8a62cbdfa8a2 (patch) | |
tree | 90c5865df8a28cf56b3f92c08ee2711eaad3c04c /src/core/hle/service | |
parent | Merge pull request #3673 from lioncash/extra (diff) | |
download | yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar.gz yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar.bz2 yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar.lz yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar.xz yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.tar.zst yuzu-337f2dc11fefba337020e1b8d16e8a62cbdfa8a2.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/time/time_zone_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp index c8159bcd5..69152d0ac 100644 --- a/src/core/hle/service/time/time_zone_manager.cpp +++ b/src/core/hle/service/time/time_zone_manager.cpp @@ -518,8 +518,8 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi constexpr s32 time_zone_max_leaps{50}; constexpr s32 time_zone_max_chars{50}; if (!(0 <= header.leap_count && header.leap_count < time_zone_max_leaps && - 0 < header.type_count && header.type_count < time_zone_rule.ttis.size() && - 0 <= header.time_count && header.time_count < time_zone_rule.ats.size() && + 0 < header.type_count && header.type_count < s32(time_zone_rule.ttis.size()) && + 0 <= header.time_count && header.time_count < s32(time_zone_rule.ats.size()) && 0 <= header.char_count && header.char_count < time_zone_max_chars && (header.ttis_std_count == header.type_count || header.ttis_std_count == 0) && (header.ttis_gmt_count == header.type_count || header.ttis_gmt_count == 0))) { |