mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
fix some errors
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -61,6 +61,7 @@ dkms.conf
|
|||||||
push_swap
|
push_swap
|
||||||
checker
|
checker
|
||||||
checker_linux
|
checker_linux
|
||||||
|
playtest.sh
|
||||||
|
|
||||||
# File obj
|
# File obj
|
||||||
obj/
|
obj/
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ int calcul_mod(int argc, char **argv)
|
|||||||
int mod;
|
int mod;
|
||||||
|
|
||||||
mod = 0;
|
mod = 0;
|
||||||
while (argv[mod] && !ft_isdigit(argv[mod][0]) && mod < argc)
|
while (argv[mod] && !ft_isdigit(argv[mod][0])
|
||||||
|
&& !ft_isdigit(argv[mod][1]) && argv[mod][1] && mod < argc)
|
||||||
mod++;
|
mod++;
|
||||||
mod--;
|
mod--;
|
||||||
return (mod);
|
return (mod);
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ void rra(t_stacks *stacks)
|
|||||||
if (stacks && stacks->a && stacks->a->previous)
|
if (stacks && stacks->a && stacks->a->previous)
|
||||||
stacks->a = stacks->a->previous;
|
stacks->a = stacks->a->previous;
|
||||||
stacks->rra++;
|
stacks->rra++;
|
||||||
secure_write(1, "rra\n", 4);
|
if (stacks->print)
|
||||||
|
secure_write(1, "rra\n", 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rrb(t_stacks *stacks)
|
void rrb(t_stacks *stacks)
|
||||||
|
|||||||
Reference in New Issue
Block a user