Skip to content

Commit

Permalink
protecting unused -yet- variable
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Jun 7, 2024
1 parent 9184ed1 commit 4645df2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions program_to_test/src/ft_do_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/06 18:46:55 by umeneses #+# #+# */
/* Updated: 2024/06/06 18:53:26 by umeneses ### ########.fr */
/* Updated: 2024/06/07 15:05:22 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

#include "push_swap.h"

void ft_do_sort(t_stack **stack_a, t_stack **stack_b)
{
if (!ft_is_sorted(*stack_a) || !ft_is_sorted(*stack_b))
(void)stack_b;

if (!ft_is_sorted(*stack_a))
{
if (ft_lstsize_int((t_list *)*stack_a) == 2)
ft_sort_2_nbrs(stack_a);
Expand Down

0 comments on commit 4645df2

Please sign in to comment.