This commit is contained in:
2025-09-08 02:40:14 +10:00
parent d0bdb7af5d
commit a84711b1f3

View File

@@ -82,7 +82,11 @@ fn evaluate_expr(
} }
} }
Expr::Prefix { op, expr } => { Expr::Prefix { op, expr } => {
let val = evaluate_expr(expr, precs, grid)?; let mut val = evaluate_expr(expr, precs, grid)?;
if let Eval::CellRef { eval, reference: _ } = val {
val = *eval;
}
match op { match op {
PrefixOp::POS => eval_pos(&val)?, PrefixOp::POS => eval_pos(&val)?,