From 1bedc67583b382d89efb13fe6f8fc5a177e75415 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Vella Date: Wed, 25 Oct 2023 16:54:55 +0100 Subject: [PATCH] Using native elem type for unary operation. --- riscv_executor/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!(), };