diff --git a/Makefile b/Makefile index e8d055f..063a611 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ # By: cchauvet 2) - ft_sort(tab_a, i - 1); + if (len >= 2) + ft_sort(tab_a, len); + free(tab_a); return (0); } diff --git a/main.o b/main.o index 8e711ec..8fd6818 100644 Binary files a/main.o and b/main.o differ diff --git a/push_swap b/push_swap index a783d67..037955d 100755 Binary files a/push_swap and b/push_swap differ diff --git a/push_swap_tester b/push_swap_tester deleted file mode 160000 index 5962845..0000000 --- a/push_swap_tester +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 59628457df966b6a6a12e63cecaa29456d2ed250 diff --git a/pushswap.h b/pushswap.h index 5c35e6a..afc540b 100644 --- a/pushswap.h +++ b/pushswap.h @@ -6,7 +6,7 @@ /* By: cchauvet