list size remplis correctement

This commit is contained in:
Hugo LAMY
2019-04-14 22:19:02 +02:00
parent 4ad02074b6
commit a77b20f0b8
3 changed files with 4 additions and 2 deletions

BIN
includes/.fillit.h.swp Normal file

Binary file not shown.

BIN
srcs/.add_to_list.c.swp Normal file

Binary file not shown.

View File

@@ -6,7 +6,7 @@
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
/* Updated: 2019/04/14 22:03:19 by hulamy ### ########.fr */
/* Updated: 2019/04/14 22:17:04 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -49,7 +49,9 @@ void reduce_tetraminos(char **square, t_fillist *list)
y2 = 4;
find_start_and_end(square, &x1, &x2, &y1, &y2);
printf("de [%d,%d] a [%d,%d]\n",x1, y1, x2, y2);
(void)list;
list->size[0] = y2 - y1 + 1;
list->size[1] = x2 - x1 + 1;
printf("size [%d,%d]\n", list->size[0], list->size[1]);
}
int add_to_list(char **square)