From ac0559db82bfef3b7ca3d976b1d7700ed2c1c1fc Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 31 Jan 2020 10:44:30 +0100 Subject: hash table unit testing, norming --- src/lst/ft_lstbsearch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lst/ft_lstbsearch.c') diff --git a/src/lst/ft_lstbsearch.c b/src/lst/ft_lstbsearch.c index 3d5dbde..25a7b4c 100644 --- a/src/lst/ft_lstbsearch.c +++ b/src/lst/ft_lstbsearch.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/30 09:17:51 by cacharle #+# #+# */ -/* Updated: 2020/01/30 09:17:53 by cacharle ### ########.fr */ +/* Updated: 2020/01/31 10:42:22 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,7 +26,7 @@ static t_ftlst *st_lstmiddle(t_ftlst *lst, t_ftlst *last) { fast = fast->next; if (fast == NULL) - break; + break ; slow = slow->next; fast = fast->next; } @@ -34,7 +34,7 @@ static t_ftlst *st_lstmiddle(t_ftlst *lst, t_ftlst *last) } static t_ftlst *st_lstbsearch_rec(t_ftlst *lst, t_ftlst *last, - t_ftbool (*equal)(void *ref, void *content), void *ref) + t_ftbool (*equal)(void *ref, void *content), void *ref) { t_ftlst *mid; t_ftlst *left; @@ -50,7 +50,7 @@ static t_ftlst *st_lstbsearch_rec(t_ftlst *lst, t_ftlst *last, return (st_lstbsearch_rec(mid, NULL, equal, ref)); } -t_ftlst *ft_lstbsearch(t_ftlst *lst, +t_ftlst *ft_lstbsearch(t_ftlst *lst, t_ftbool (*equal)(void *ref, void *content), void *ref) { return (st_lstbsearch_rec(lst, NULL, equal, ref)); -- cgit