debug
This commit is contained in:
parent
94e9eda7f9
commit
7aeb779fd9
2
grille.c
2
grille.c
@ -52,7 +52,7 @@ colonne *creer_colonne(int capacite)
|
|||||||
|
|
||||||
bool agrandir_colonne(int diff_taille, colonne *col)
|
bool agrandir_colonne(int diff_taille, colonne *col)
|
||||||
{
|
{
|
||||||
printf("J'appelle realloc(%p, %d + %d)\n", col->jetons, col->capacite + diff_taille);
|
printf("J'appelle realloc(%p, %d + %d)\n", col->jetons, col->capacite, diff_taille);
|
||||||
jeton *jetons_nouv = realloc(col->jetons, col->capacite + diff_taille);
|
jeton *jetons_nouv = realloc(col->jetons, col->capacite + diff_taille);
|
||||||
|
|
||||||
if (jetons_nouv == NULL)
|
if (jetons_nouv == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user