diff options
| author | bunnei <bunneidev@gmail.com> | 2020-04-21 14:11:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-21 14:11:18 -0400 |
| commit | 9bf3abcb63003e1f6cb911270a88cda761f63525 (patch) | |
| tree | c633d54ee61e75888ce227720d576b7c0d3cf7e5 /src/core/hle | |
| parent | 48b670d1323c6872a294720b440032f87d99cfc4 (diff) | |
| parent | 8f9c599c9f7dff8c3c19375e443d7c6427ea11d3 (diff) | |
Merge pull request #3698 from lioncash/warning
General: Resolve minor assorted warnings
Diffstat (limited to 'src/core/hle')
| -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))) { |
