Fix non-const labels with callbacks having incorrect values when diffed

Basically, this broke PC, which is currently the only label-typed symbol
with a callback.
This commit is contained in:
ISSOtm
2020-02-13 20:12:19 +01:00
parent 91b65c9380
commit f01a227470
3 changed files with 6 additions and 5 deletions

View File

@@ -442,7 +442,7 @@ void rpn_BinaryOp(enum RPNCommand op, struct Expression *expr,
struct sSymbol const *symbol1 = symbolOf(src1);
struct sSymbol const *symbol2 = symbolOf(src2);
expr->nVal = symbol1->nValue - symbol2->nValue;
expr->nVal = sym_GetValue(symbol1) - sym_GetValue(symbol2);
expr->isKnown = true;
} else {
/* If it's not known, start computing the RPN expression */