summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-17 00:21:58 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-02-13 14:38:59 -0800
commit50d93499269fb3d8a444cea6ae4da6daad2a2c10 (patch)
tree8297acb59dce185af00e9ab245f4f1d320021db2 /Source/Core/DiscIO/VolumeVerifier.cpp
parent5f9e04be1d73b3c9ec8aa66defcedbc6f7106c46 (diff)
Fix integer sign difference comparison warnings
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 252cf427b6..593fb49b33 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -1113,10 +1113,11 @@ void VolumeVerifier::Process()
bytes_to_read = Common::AlignUp(content.size, 0x40);
content_read = true;
- if (m_content_index + 1 < m_content_offsets.size() &&
- m_content_offsets[m_content_index + 1] < m_progress + bytes_to_read)
+ const u16 next_content_index = m_content_index + 1;
+ if (next_content_index < m_content_offsets.size() &&
+ m_content_offsets[next_content_index] < m_progress + bytes_to_read)
{
- excess_bytes = m_progress + bytes_to_read - m_content_offsets[m_content_index + 1];
+ excess_bytes = m_progress + bytes_to_read - m_content_offsets[next_content_index];
}
}
else if (m_content_index < m_content_offsets.size() &&