From c52d1e735ab1a083cfdf0c087f70a1c7aef9b72f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 4 Jan 2017 20:03:09 -0500 Subject: [PATCH] DiscScrubber: Use an unsigned loop index in ParseDisc Prevents an implicit signed to unsigned conversion when assigning a partition's group number. --- Source/Core/DiscIO/DiscScrubber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index c41e402b28..bceda5c484 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -142,7 +142,7 @@ bool DiscScrubber::ParseDisc() // Mark the header as used - it's mostly 0s anyways 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) || !ReadFromVolume(0x40000 + (x * 8) + 4, m_partition_group[x].partitions_offset, false))