summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeWii.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-08-17 14:49:28 +0200
committerGitHub <noreply@github.com>2020-08-17 14:49:28 +0200
commit55c931d6248c6dda5a8a9cbd332131255d62bc3f (patch)
tree9ea6e7205a2e37c587b44432749fb0a5cd438f2b /Source/Core/DiscIO/VolumeWii.cpp
parent6104018fe13eeb02dfd26f02fb42d74e77e39f16 (diff)
parentca61b6c1ab7966cb7f3509c81439e5c673f5ae88 (diff)
Merge pull request #8995 from Tilka/warnings
Fix some more GCC warnings
Diffstat (limited to 'Source/Core/DiscIO/VolumeWii.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeWii.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeWii.cpp b/Source/Core/DiscIO/VolumeWii.cpp
index 73797fe1e3..db31530c8e 100644
--- a/Source/Core/DiscIO/VolumeWii.cpp
+++ b/Source/Core/DiscIO/VolumeWii.cpp
@@ -571,17 +571,17 @@ bool VolumeWii::EncryptGroup(
encryption_futures[i] = std::async(
std::launch::async,
[&unencrypted_data, &unencrypted_hashes, &aes_context, &out](size_t start, size_t end) {
- for (size_t i = start; i < end; ++i)
+ for (size_t j = start; j < end; ++j)
{
- u8* out_ptr = out->data() + i * BLOCK_TOTAL_SIZE;
+ u8* out_ptr = out->data() + j * BLOCK_TOTAL_SIZE;
u8 iv[16] = {};
mbedtls_aes_crypt_cbc(&aes_context, MBEDTLS_AES_ENCRYPT, BLOCK_HEADER_SIZE, iv,
- reinterpret_cast<u8*>(&unencrypted_hashes[i]), out_ptr);
+ reinterpret_cast<u8*>(&unencrypted_hashes[j]), out_ptr);
std::memcpy(iv, out_ptr + 0x3D0, sizeof(iv));
mbedtls_aes_crypt_cbc(&aes_context, MBEDTLS_AES_ENCRYPT, BLOCK_DATA_SIZE, iv,
- unencrypted_data[i].data(), out_ptr + BLOCK_HEADER_SIZE);
+ unencrypted_data[j].data(), out_ptr + BLOCK_HEADER_SIZE);
}
},
i * BLOCKS_PER_GROUP / threads, (i + 1) * BLOCKS_PER_GROUP / threads);