Skip to content

Commit

Permalink
fix build for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 8, 2024
1 parent cc94925 commit 27493e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sort/set_cost.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: reasuke <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/08 12:17:33 by reasuke #+# #+# */
/* Updated: 2024/02/08 21:38:17 by reasuke ### ########.fr */
/* Updated: 2024/02/08 21:47:27 by reasuke ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -48,6 +48,7 @@ static int _calc_max_index(t_stack **p_a)
size_a = stack_size(*p_a);
i = 0;
max_a = INT_MIN;
max_index = -1;
while (i < size_a)
{
if (ft_chmax(&max_a, get_content(st_a)->index))
Expand Down

0 comments on commit 27493e0

Please sign in to comment.