From c178824a0a9d7f198f57200da1d520bb6e63d7bc Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 6 Aug 2022 08:22:09 +0100 Subject: [PATCH] Forgot a function call --- source/interpreter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/interpreter.c b/source/interpreter.c index e0fdfb0..28caef4 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -126,6 +126,10 @@ static void execInterpreter(Interpreter* interpreter) { execPushLiteral(interpreter, opcode == OP_LITERAL_LONG); break; + case OP_NEGATE: + execNegate(interpreter); + break; + default: printf("Unknown opcode found %d, terminating\n", opcode); printLiteralArray(&interpreter->stack, "\n");