diff options
| author | Tilka <tilkax@gmail.com> | 2024-10-11 20:28:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-11 20:28:06 +0100 |
| commit | d2a56b321fb8957c8bb13911ef2b60a89c244de4 (patch) | |
| tree | d140ff1fa93560952e0f2fc62c3c0e6ffc24896b /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | c1832d17f657ba885815f53881784ea12a87c532 (diff) | |
| parent | b6ec8ddc206ea8da474348e801758051d6470b79 (diff) | |
Merge pull request #13095 from mitaclaw/ranges-modernization-6-n
Ranges Algorithms Modernization - N
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index e6da0fcc3e..23d8592af5 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -1300,8 +1300,7 @@ void VolumeVerifier::Finish() { m_result.hashes.crc32 = std::vector<u8>(4); const u32 crc32_be = Common::swap32(m_crc32_context); - const u8* crc32_be_ptr = reinterpret_cast<const u8*>(&crc32_be); - std::copy(crc32_be_ptr, crc32_be_ptr + 4, m_result.hashes.crc32.begin()); + std::memcpy(m_result.hashes.crc32.data(), &crc32_be, 4); } if (m_hashes_to_calculate.md5) |
