Fixed negating identifiers

This commit is contained in:
2022-09-15 09:58:15 +01:00
parent ac37a017bb
commit b7f63ea571

View File

@@ -287,7 +287,7 @@ static bool execNegate(Interpreter* interpreter) {
freeLiteral(idn); freeLiteral(idn);
} }
else if (IS_INTEGER(lit)) { if (IS_INTEGER(lit)) {
lit = TO_INTEGER_LITERAL(-AS_INTEGER(lit)); lit = TO_INTEGER_LITERAL(-AS_INTEGER(lit));
} }
else if (IS_FLOAT(lit)) { else if (IS_FLOAT(lit)) {