From 3ef53315a2b500678b9349d8cd682b1f139307fe Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 29 May 2022 15:28:16 -0400 Subject: [PATCH] Don't try to append operands to 'None'. --- InstructionSets/M68k/Instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstructionSets/M68k/Instruction.cpp b/InstructionSets/M68k/Instruction.cpp index b4184c868..c52ebe0ee 100644 --- a/InstructionSets/M68k/Instruction.cpp +++ b/InstructionSets/M68k/Instruction.cpp @@ -61,7 +61,7 @@ std::string Preinstruction::to_string(int opcode) const { const char *instruction; switch(operation) { - case Operation::Undefined: instruction = "None"; break; + case Operation::Undefined: return "None"; case Operation::NOP: instruction = "NOP"; break; case Operation::ABCD: instruction = "ABCD"; break; case Operation::SBCD: instruction = "SBCD"; break;