From 2247d3662e444aac58bcac52ff3d8ebcffd8380d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Mon, 2 Sep 2024 19:28:06 +0200 Subject: [PATCH] Corrected the norm on operator (exec/run_arith) --- exec/src/run_arithmetic/operator_bis.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/exec/src/run_arithmetic/operator_bis.c b/exec/src/run_arithmetic/operator_bis.c index f5085a95..9891a9d4 100644 --- a/exec/src/run_arithmetic/operator_bis.c +++ b/exec/src/run_arithmetic/operator_bis.c @@ -6,15 +6,14 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/09/02 13:45:46 by maiboyer #+# #+# */ -/* Updated: 2024/09/02 13:50:59 by maiboyer ### ########.fr */ +/* Updated: 2024/09/02 19:27:31 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "exec/_run_arith.h" #include "me/types.h" - -t_error _postfix_op_dec(t_ast_node self, t_state *state, t_i64 *out) +t_error _postfix_op_dec(t_ast_node self, t_state *state, t_i64 *out) { (void)(self); (void)(state); @@ -22,7 +21,7 @@ t_error _postfix_op_dec(t_ast_node self, t_state *state, t_i64 *out) return (ERROR); } -t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out) +t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out) { (void)(self); (void)(state); @@ -30,9 +29,9 @@ t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out) return (ERROR); } -t_error _unary_op_minus(t_ast_node self, t_state *state, t_i64 *out) +t_error _unary_op_minus(t_ast_node self, t_state *state, t_i64 *out) { - t_i64 val; + t_i64 val; (void)(self); (void)(state); @@ -44,7 +43,7 @@ t_error _unary_op_minus(t_ast_node self, t_state *state, t_i64 *out) return (NO_ERROR); } -t_error _unary_op_plus(t_ast_node self, t_state *state, t_i64 *out) +t_error _unary_op_plus(t_ast_node self, t_state *state, t_i64 *out) { return (_get_node_number(self, state, out)); }