(A.getValue() | B.getValue()) - A.getSecAddr()};
}
-static ExprValue bitNot(ExprValue A) { return ~A.getValue(); }
-static ExprValue minus(ExprValue A) { return -A.getValue(); }
-
void ScriptParser::readDynamicList() {
expect("{");
readAnonymousDeclaration();
if (Tok == "~") {
Expr E = readPrimary();
- return [=] { return bitNot(E()); };
+ return [=] { return ~E().getValue(); };
}
if (Tok == "-") {
Expr E = readPrimary();
- return [=] { return minus(E()); };
+ return [=] { return -E().getValue(); };
}
// Built-in functions are parsed here.