From 610d09a9036b0037fd89fc4d8ef65ef751bf83c3 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 20 Jun 2024 10:47:16 +0200 Subject: [PATCH] Fix logic bug --- ft_parse/ft_parse.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ft_parse/ft_parse.c b/ft_parse/ft_parse.c index a1eb575..e22015d 100644 --- a/ft_parse/ft_parse.c +++ b/ft_parse/ft_parse.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/20 20:51:36 by ljiriste #+# #+# */ -/* Updated: 2024/06/16 18:27:16 by ljiriste ### ########.fr */ +/* Updated: 2024/06/20 10:08:13 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -190,8 +190,7 @@ static t_vec parse_goto(const char *line) ++line; if (!*line) break ; - else - ++line; + ++line; if (!*line) break ; else if (*line == ';') @@ -216,7 +215,7 @@ static int add_line(t_vec *states, const char *line, size_t lookahead_size) { while (condensed_line[i] && condensed_line[i] != ';') ++i; - if (!condensed_line[i]) + if (condensed_line[i]) ++i; --lookahead_size; } -- 2.30.2