mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
tz_manager: Fix comparison to wrong integer
This commit is contained in:
parent
3218313c22
commit
8f9afbcd91
@ -557,7 +557,7 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi
|
|||||||
for (int index{}; index < time_zone_rule.time_count; ++index) {
|
for (int index{}; index < time_zone_rule.time_count; ++index) {
|
||||||
const u8 type{*vfs_file->ReadByte(read_offset)};
|
const u8 type{*vfs_file->ReadByte(read_offset)};
|
||||||
read_offset += sizeof(u8);
|
read_offset += sizeof(u8);
|
||||||
if (time_zone_rule.time_count <= type) {
|
if (time_zone_rule.type_count <= type) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
if (time_zone_rule.types[index] != 0) {
|
if (time_zone_rule.types[index] != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user