Expansion: one little problem remaining with * expansion and .

This commit is contained in:
Jérôme Guélen 2025-03-20 10:37:50 +01:00
parent 2da7f03a66
commit da06c0d4e0
No known key found for this signature in database
4 changed files with 42 additions and 41 deletions

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* wordlist_quicksort.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/08 17:29:05 by jguelen #+# #+# */
/* Updated: 2025/03/19 16:29:58 by jguelen ### ########.fr */
/* Updated: 2025/03/20 09:41:04 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
@ -45,7 +45,7 @@ static int wordlist_quicksort_partition(t_wordlist *list, int start, int end)
pivot = wordlist_get_elem(list, end);
while (j < end)
{
if (ft_strcmp(list_j->word->word, pivot->word->word) > 0)
if (ft_strcmp(list_j->word->word, pivot->word->word) < 0)
{
ft_swap_wordlist_contents(list_i, list_j);
i++;