From 3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 19 Feb 2020 02:51:44 +0100 Subject: Tested ht* --- src/lst/ft_lstlfind.c | 2 +- src/lst/ft_lstremove_if.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lst') diff --git a/src/lst/ft_lstlfind.c b/src/lst/ft_lstlfind.c index ddb890b..92d37d8 100644 --- a/src/lst/ft_lstlfind.c +++ b/src/lst/ft_lstlfind.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/17 03:04:52 by cacharle #+# #+# */ -/* Updated: 2020/02/17 03:34:19 by cacharle ### ########.fr */ +/* Updated: 2020/02/19 02:03:11 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/src/lst/ft_lstremove_if.c b/src/lst/ft_lstremove_if.c index 488539e..5221ae4 100644 --- a/src/lst/ft_lstremove_if.c +++ b/src/lst/ft_lstremove_if.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/30 09:36:49 by cacharle #+# #+# */ -/* Updated: 2020/02/16 03:57:07 by cacharle ### ########.fr */ +/* Updated: 2020/02/19 02:06:22 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,7 +20,7 @@ void ft_lstremove_if(t_ftlst **lst, t_ftcompar_func cmp, if (lst == NULL || *lst == NULL) return ; - if (cmp((*lst)->content, ref) == 0) + if (cmp(ref, (*lst)->content) == 0) { saved_next = (*lst)->next; ft_lstdelone(*lst, del); -- cgit