This commit is contained in:
Raphael 2024-07-18 18:43:38 +02:00
parent 5215c0e3f4
commit d948c639ec
3 changed files with 14 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/04 11:42:37 by rparodi #+# #+# */
/* Updated: 2024/07/11 17:31:53 by rparodi ### ########.fr */
/* Updated: 2024/07/18 18:37:43 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,7 +23,7 @@ t_error ft_parsing_args(t_i32 argc, t_str *argv, t_philo *philo)
philo->nb_eat = tmp;
}
else
philo->t_eat = ~0;
philo->nb_eat = -1;
ft_atou(argv[1], &tmp);
philo->nb_philo = tmp;
ft_atou(argv[2], &tmp);