mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Fixed negating identifiers
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user