/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 11:16:53 by ljiriste #+# #+# */
-/* Updated: 2024/07/04 16:33:02 by ljiriste ### ########.fr */
+/* Updated: 2024/07/05 08:27:38 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
if (is_terminal_token(token, tokens))
{
token_copy = ft_token_dup(token);
- res = ft_vec_setinsert(lookahead, token, void_cmp_token_type);
+ res = ft_vec_setinsert(lookahead, &token_copy, void_cmp_token_type);
if (res != success)
ft_free_token(&token_copy);
return (res);