Nearly there !!!
WIP merge sort still problems with negative numbers
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/22 14:41:27 by tmaze #+# #+# */
|
||||
/* Updated: 2019/03/02 15:23:43 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/03/06 11:37:06 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -61,12 +61,10 @@ t_stack *ps_stkpop(t_psdata *data, char c)
|
||||
s = &(data->a);
|
||||
if (c == 'a')
|
||||
size = &(data->size_a);
|
||||
if (c == 'b')
|
||||
else if (c == 'b')
|
||||
s = &(data->b);
|
||||
if (c == 'b')
|
||||
size = &(data->size_b);
|
||||
else if (c != 'a' && c != 'b')
|
||||
return (NULL);
|
||||
ret = NULL;
|
||||
if (s != NULL && *s != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user