diff --git a/riscv_executor/src/lib.rs b/riscv_executor/src/lib.rs index 8ea1579d7b..f15a46cb38 100644 --- a/riscv_executor/src/lib.rs +++ b/riscv_executor/src/lib.rs @@ -672,8 +672,8 @@ impl<'a, 'b, F: FieldElement> Executor<'a, 'b, F> { Expression::UnaryOperation(op, arg) => { let arg = self.eval_expression(arg)[0]; let result = match op { - ast::parsed::UnaryOperator::Plus => arg.s(), - ast::parsed::UnaryOperator::Minus => -arg.s(), + ast::parsed::UnaryOperator::Plus => arg.0, + ast::parsed::UnaryOperator::Minus => -arg.0, ast::parsed::UnaryOperator::LogicalNot => todo!(), };