Skip to content

Commit

Permalink
removing goto_head
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Jul 4, 2024
1 parent 639d314 commit 8f28318
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions program_to_test/src/ft_sort_5_or_more.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/10 12:41:29 by umeneses #+# #+# */
/* Updated: 2024/07/01 12:46:58 by umeneses ### ########.fr */
/* Updated: 2024/07/04 18:32:14 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -33,8 +33,8 @@ void ft_lst_get_cost(t_stack **stack_a, t_stack **stack_b)
t_stack *temp_a;
t_stack *temp_b;

temp_a = ft_lst_goto_head(*stack_a);
temp_b = ft_lst_goto_head(*stack_b);
temp_a = (*stack_a);
temp_b = (*stack_b);
size_a = ft_lst_size(temp_a);
size_b = ft_lst_size(temp_b);
ft_lst_map_actual_position(stack_a);
Expand All @@ -61,7 +61,7 @@ void ft_lst_do_cheapest_move(t_stack **stack_a, t_stack **stack_b)
cheapest = INT_MAX;
ft_lst_map_actual_position(stack_a);
ft_lst_map_actual_position(stack_b);
temp_b = ft_lst_goto_head(*stack_b);
temp_b = (*stack_b);
while (temp_b)
{
if ((abs_nbr(temp_b->cost_a) + abs_nbr(temp_b->cost_b))
Expand Down

0 comments on commit 8f28318

Please sign in to comment.