mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 16:17:33 +01:00
fsmitm_romfsbuild: Make auto variable into a std::size_t variable within Build()
auto x = 0; auto-deduces x to be an int. This is undesirable when working with unsigned values. It also causes sign conversion warnings. Instead, we can make it a proper unsigned value with the correct width that the following expressions operate on.
This commit is contained in:
parent
f646ca874d
commit
fa9e0f9c8b
@ -355,7 +355,7 @@ std::map<u64, VirtualFile> RomFSBuildContext::Build() {
|
||||
|
||||
std::vector<u8> metadata(file_hash_table_size + file_table_size + dir_hash_table_size +
|
||||
dir_table_size);
|
||||
auto index = 0;
|
||||
std::size_t index = 0;
|
||||
std::memcpy(metadata.data(), dir_hash_table.data(), dir_hash_table.size() * sizeof(u32));
|
||||
index += dir_hash_table.size() * sizeof(u32);
|
||||
std::memcpy(metadata.data() + index, dir_table.data(), dir_table.size());
|
||||
|
Loading…
Reference in New Issue
Block a user