From f1c0203237b976c366bedd950a2e6ffbcb8f7bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 21 Dec 2017 14:59:09 +0100 Subject: Some pleanups and small fixes These are just code fixes. Shouldn't change anything but makes code cleaner. --- qtmips_machine/programloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/programloader.cpp') diff --git a/qtmips_machine/programloader.cpp b/qtmips_machine/programloader.cpp index 4a10540..fd0679d 100644 --- a/qtmips_machine/programloader.cpp +++ b/qtmips_machine/programloader.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include "qtmipsexception.h" @@ -47,7 +47,7 @@ ProgramLoader::ProgramLoader(const char *file) { // We want only LOAD sections so we create map of those sections for (unsigned i = 1; i < this->n_secs; i++) { // TODO handle endianity - if (this->phdrs[i].p_type != PT_LOAD) + if (phdrs[i].p_type != PT_LOAD) continue; this->map.push_back(i); } -- cgit v1.2.3