diff --git a/src/main.cpp b/src/main.cpp index e83ca66..00f6d9e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1221,7 +1221,7 @@ void dump_context(const RecompPort::Context& context, const std::filesystem::pat for (size_t section_index = 0; section_index < context.sections.size(); section_index++) { const RecompPort::Section& section = context.sections[section_index]; - const std::vector& section_funcs = context.section_functions[section_index]; + const std::vector& section_funcs = context.section_functions[section_index]; if (!section_funcs.empty()) { fmt::print(context_file, "# Autogenerated from an ELF via N64Recomp\n" @@ -1251,7 +1251,7 @@ void dump_context(const RecompPort::Context& context, const std::filesystem::pat fmt::print(context_file, "functions = [\n"); - for (const ELFIO::Elf_Xword& function_index : section_funcs) { + for (const size_t& function_index : section_funcs) { const RecompPort::Function& func = context.functions[function_index]; fmt::print(context_file, " {{ name = \"{}\", vram = 0x{:08X}, size = 0x{:X} }},\n", func.name, func.vram, func.words.size() * sizeof(func.words[0]));