aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sort_s_t.c
diff options
context:
space:
mode:
authorsalad <salad@saladesk.desktop>2020-03-25 16:38:34 +0100
committersalad <salad@saladesk.desktop>2020-03-25 16:38:34 +0100
commitfb50b38dbffc812297b1d3980a19ecff070fda4a (patch)
treed69e99b39c1aaac0ddafd8c6f61ff8940fdea4ef /src/ft_sort_s_t.c
parentnorme, TODO: liks (diff)
download42-cub3d-fb50b38dbffc812297b1d3980a19ecff070fda4a.tar.gz
42-cub3d-fb50b38dbffc812297b1d3980a19ecff070fda4a.tar.bz2
42-cub3d-fb50b38dbffc812297b1d3980a19ecff070fda4a.tar.xz
42-cub3d-fb50b38dbffc812297b1d3980a19ecff070fda4a.tar.zst
42-cub3d-fb50b38dbffc812297b1d3980a19ecff070fda4a.zip
pourquoi se priver de stack
Diffstat (limited to 'src/ft_sort_s_t.c')
-rw-r--r--src/ft_sort_s_t.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_sort_s_t.c b/src/ft_sort_s_t.c
index c1378c7..24ed358 100644
--- a/src/ft_sort_s_t.c
+++ b/src/ft_sort_s_t.c
@@ -29,11 +29,9 @@ void
{
int16_t i;
int32_t tmp;
- float *tmp_i;
+ float tmp_i[4096];
i = -1;
- if (!(tmp_i = ft_calloc(sizeof(int32_t), 4096)))
- return ;
ft_init_st(cl->mlist.sprite_var, cl->mlist.st_o);
while (++i < cl->mlist.sprite_var)
if (dist_tab[i][0] < dist_tab[i + 1][0])