From b7f63ea571295765d4ea01466f156646f310b1e1 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 15 Sep 2022 09:58:15 +0100 Subject: [PATCH] Fixed negating identifiers --- source/interpreter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/interpreter.c b/source/interpreter.c index 06bea60..574d2a4 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -287,7 +287,7 @@ static bool execNegate(Interpreter* interpreter) { freeLiteral(idn); } - else if (IS_INTEGER(lit)) { + if (IS_INTEGER(lit)) { lit = TO_INTEGER_LITERAL(-AS_INTEGER(lit)); } else if (IS_FLOAT(lit)) {