bug asm ok

This commit is contained in:
Jeremy FLEURY 2019-07-17 12:25:33 +02:00
parent 45e980b4e3
commit dee6d95cc6

View File

@ -6,7 +6,7 @@
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/06 14:48:26 by jfleury #+# #+# */
/* Updated: 2019/07/16 14:30:23 by jfleury ### ########.fr */
/* Updated: 2019/07/17 12:22:28 by jfleury ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,8 +21,8 @@ static int ft_cal_i_string(int i_matrice, char *line, int *nb_char_token)
|| (i_matrice == 21 && line[*nb_char_token] != '\n'))
i_string = 16;
else
while (!(ft_line_strchr(g_string_automaton[i_string],
line[*nb_char_token])) && i_string < 15)
while (i_string < 16 && !(ft_line_strchr(g_string_automaton[i_string],
line[*nb_char_token])))
i_string++;
return (i_string);
}