From e7d58349800bd6bb0f139eec411bfd434f2c824f Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Tue, 17 Sep 2024 19:28:37 +0200 Subject: [PATCH] Make norminette happy and fry my brain. I just summoned some cosmic horror, but at least norminette doesn't complain anymore. --- src/collect_redirs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/collect_redirs.c b/src/collect_redirs.c index 60f197b..8917c78 100644 --- a/src/collect_redirs.c +++ b/src/collect_redirs.c @@ -6,7 +6,7 @@ /* By: dkaiser type == REDIR_TOKEN && cur->next->type == STRING_TOKEN) { - is_redir_only = 0; - if (cur->previous == NULL && cur->next->next == NULL) - is_redir_only = 1; cur = collect_redir(tokens, result, cur); - if (is_redir_only) - *tokens = NULL; + *tokens = (t_token *)(((unsigned long)*tokens) & (~0 + * (!cur->previous && !cur->next->next))); } else if (cur->type == REDIR_TOKEN) return (free(result), NULL); -- 2.47.2