diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-19 02:51:44 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-19 02:51:44 +0100 |
| commit | 3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (patch) | |
| tree | 29803aac5bd1fe039b9a8179e8c2a4f07e68ec82 /src/lst/ft_lstremove_if.c | |
| parent | 0362f55a094b5ec813d940b66f397abfa13fbe49 (diff) | |
| download | libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.gz libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.bz2 libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.zip | |
Tested ht*
Diffstat (limited to 'src/lst/ft_lstremove_if.c')
| -rw-r--r-- | src/lst/ft_lstremove_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); |
