From 36218a8325aed1a2693925fa61935f431c1eeff1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 11 Oct 2017 02:23:23 -0700 Subject: 4019 --- subx/010core.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'subx') diff --git a/subx/010core.cc b/subx/010core.cc index d3d46d44..59d631a8 100644 --- a/subx/010core.cc +++ b/subx/010core.cc @@ -124,7 +124,7 @@ void run_one_instruction() { switch(op2 = next()) { // End Two-Byte Opcodes Starting With 0f default: - cerr << "unrecognized second opcode after 0f: " << std::hex << op2 << '\n'; + cerr << "unrecognized second opcode after 0f: " << std::hex << static_cast(op2) << '\n'; exit(1); } break; @@ -135,12 +135,12 @@ void run_one_instruction() { switch(op3 = next()) { // End Three-Byte Opcodes Starting With f3 0f default: - cerr << "unrecognized third opcode after f3 0f: " << std::hex << op3 << '\n'; + cerr << "unrecognized third opcode after f3 0f: " << std::hex << static_cast(op3) << '\n'; exit(1); } break; default: - cerr << "unrecognized second opcode after f3: " << std::hex << op2 << '\n'; + cerr << "unrecognized second opcode after f3: " << std::hex << static_cast(op2) << '\n'; exit(1); } break; @@ -148,7 +148,7 @@ void run_one_instruction() { EIP = Memory.size(); break; default: - cerr << "unrecognized opcode: " << std::hex << op << '\n'; + cerr << "unrecognized opcode: " << std::hex << static_cast(op) << '\n'; exit(1); } } -- cgit 1.4.1-2-gfad0