This commit is contained in:
Valentin Moguérou 2023-10-20 18:21:01 +02:00
parent 94e9eda7f9
commit 7aeb779fd9

View File

@ -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)