From 4d97d3801e731dff0675eef3982dcde08efdcc68 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Fri, 31 Mar 2023 18:25:09 +0200 Subject: [PATCH] =?UTF-8?q?Probl=C3=A8me=20de=20norme=20:'D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mandatory/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mandatory/threads.c b/mandatory/threads.c index 5432914..4c4b9ec 100644 --- a/mandatory/threads.c +++ b/mandatory/threads.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/03/08 20:08:33 by erey-bet #+# #+# */ -/* Updated: 2023/03/31 18:21:03 by erey-bet ### ########.fr */ +/* Updated: 2023/03/31 18:24:55 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -127,7 +127,7 @@ void *philosopher(t_philo *philo) pthread_mutex_lock(&philo->same->mutex[nbr_philo + 1]); pthread_mutex_lock(&philo->same->mutex[nbr_philo]); if (!*philo->same->death && (config->must_eat == -1 - || (config->must_eat > -1 && only->eat < config->must_eat))) + || (config->must_eat > -1 && only->eat < config->must_eat))) { *philo->same->death = 1; message(only->time, only->id, "died\n");