Skip to content

Commit

Permalink
section: Really use uint64_t for hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jul 10, 2024
1 parent 46b9396 commit 93c5a64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/section/section.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ Section::Disassemble(IDisassembler& disassembler)

for (const auto& [address, sym] : m_sorted_symbols)
{
auto hint = 0ULL;

if (m_disassembly_hint_queue.pop(hint) && m_sorted_symbols.contains(hint))
if (uint64_t hint; m_disassembly_hint_queue.pop(hint) && m_sorted_symbols.contains(hint))
{
DisassembleSymbol(m_sorted_symbols.find(hint)->second, disassembler);
finished_offsets.insert(hint);
Expand Down

0 comments on commit 93c5a64

Please sign in to comment.