mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 01:05:46 +00:00
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
This commit is contained in:
parent
72df55f8a5
commit
18636013c9
105 changed files with 906 additions and 667 deletions
|
@ -201,9 +201,9 @@ bool NCA::HandlePotentialHeaderDecryption() {
|
|||
}
|
||||
|
||||
std::vector<NCASectionHeader> NCA::ReadSectionHeaders() const {
|
||||
const std::ptrdiff_t number_sections =
|
||||
const auto number_sections = static_cast<std::size_t>(
|
||||
std::count_if(std::begin(header.section_tables), std::end(header.section_tables),
|
||||
[](NCASectionTableEntry entry) { return entry.media_offset > 0; });
|
||||
[](NCASectionTableEntry entry) { return entry.media_offset > 0; }));
|
||||
|
||||
std::vector<NCASectionHeader> sections(number_sections);
|
||||
const auto length_sections = SECTION_HEADER_SIZE * number_sections;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue