Skip to content

Commit

Permalink
fix identation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavy Airi committed Aug 8, 2023
1 parent 18a4cfc commit 9d0a53b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/assembler/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const DisassembledProgram &Program::getDisassembled() const {
const VInt textSectionBaseAddr = textSection->address;
unsigned line = 0;
for (AInt addr = 0;
addr < static_cast<AInt>(Program::getCurrentProgramSize());) {
addr < static_cast<AInt>(Program::getCurrentProgramSize());) {
const VInt disassembleAddr = addr + textSectionBaseAddr;
auto disRes =
assembler->disassemble(memory.readMem(disassembleAddr, instrBytes),
Expand All @@ -102,7 +102,7 @@ int Program::_getCurrentProgramSize() const {
const auto *textSection = getSection(TEXT_SECTION_NAME);

if (textSection)
return textSection->data.length();
return textSection->data.length();

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/assembler/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class Program {
public:
/// Returns a pointer to this class singleton.
static Program *get() {
static auto *handler = new Program;
return handler;
static auto *handler = new Program;
return handler;
}

// A source mapping is a mapping from {instruction address : source code
Expand Down

0 comments on commit 9d0a53b

Please sign in to comment.