mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-02 16:49:04 +00:00
Fix the 64-bit shift
This commit is contained in:
@@ -609,7 +609,7 @@ std::vector<u8> LoadSharedRomFS(const std::vector<u8>& data) {
|
||||
// Calculation from ctrtool
|
||||
const std::size_t data_offset =
|
||||
offset + Common::AlignUp(sizeof(ivfc) + ivfc.master_hash_size,
|
||||
(1 << static_cast<std::size_t>(ivfc.levels[2].block_size)));
|
||||
(std::size_t{1} << ivfc.levels[2].block_size));
|
||||
if (!CheckedMemcpy(result.data(), data, data_offset, ivfc.levels[2].size)) {
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user