mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
DiscScrubber: Use an unsigned loop index in ParseDisc
Prevents an implicit signed to unsigned conversion when assigning a partition's group number.
This commit is contained in:
parent
6ff21c48cb
commit
c52d1e735a
@ -142,7 +142,7 @@ bool DiscScrubber::ParseDisc()
|
|||||||
// Mark the header as used - it's mostly 0s anyways
|
// Mark the header as used - it's mostly 0s anyways
|
||||||
MarkAsUsed(0, 0x50000);
|
MarkAsUsed(0, 0x50000);
|
||||||
|
|
||||||
for (int x = 0; x < 4; x++)
|
for (u32 x = 0; x < 4; x++)
|
||||||
{
|
{
|
||||||
if (!ReadFromVolume(0x40000 + (x * 8) + 0, m_partition_group[x].num_partitions, false) ||
|
if (!ReadFromVolume(0x40000 + (x * 8) + 0, m_partition_group[x].num_partitions, false) ||
|
||||||
!ReadFromVolume(0x40000 + (x * 8) + 4, m_partition_group[x].partitions_offset, false))
|
!ReadFromVolume(0x40000 + (x * 8) + 4, m_partition_group[x].partitions_offset, false))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user