Corrected the norm on operator (exec/run_arith)

This commit is contained in:
Raphaël 2024-09-02 19:28:06 +02:00
parent 1a40f20f0d
commit 2247d3662e

View file

@ -6,15 +6,14 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/02 13:45:46 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 "exec/_run_arith.h"
#include "me/types.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)(self);
(void)(state); (void)(state);
@ -22,7 +21,7 @@ t_error _postfix_op_dec(t_ast_node self, t_state *state, t_i64 *out)
return (ERROR); 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)(self);
(void)(state); (void)(state);
@ -30,9 +29,9 @@ t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out)
return (ERROR); 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)(self);
(void)(state); (void)(state);
@ -44,7 +43,7 @@ t_error _unary_op_minus(t_ast_node self, t_state *state, t_i64 *out)
return (NO_ERROR); 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)); return (_get_node_number(self, state, out));
} }