Skip to content

Commit aa0ebbf

Browse files
committed
[elf_loader] Fix bug w/ status check
1 parent adb9fe3 commit aa0ebbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elf_loader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace hsim {
77
void ElfLoader::load(Memory &memory) {
88
ELFIO::elfio reader{};
99

10-
if (reader.load(m_path))
10+
if (!reader.load(m_path))
1111
throw std::invalid_argument("Bad ELF path: " + m_path.string());
1212

1313
if (reader.get_encoding() != ELFIO::ELFDATA2LSB) {

0 commit comments

Comments
 (0)