commit 6b95ea4b4201cde0d2c7a387ebc9c421b07f90ae
parent a4bd429e76f42df334d940fb864d7e4a09e45bc4
Auteur: Loïc Daignault-Pichette <loic@asteride.xyz>
Date: Mon, 16 Feb 2026 14:20:09 -0500
Rendre l’affichage des size_t plus portable
Diffstat:
1 fichier modifié, 2 insertions(+), 2 suppressions(-)
diff --git a/att.c b/att.c
@@ -140,7 +140,7 @@ att_ecrire(FILE *f, struct tfm *tfm)
for (itrans = etat.trans; etat.ntrans--; itrans = trans.prch) {
if (tampinf_obt(tfm->trans, itrans, 1, &trans) < 0)
return -1;
- fprintf(f, "%ld\t%ld\t", ietat, trans.ed);
+ fprintf(f, "%zu\t%zu\t", ietat, trans.ed);
if ((lngr = symb_obt(tfm, trans.se, symb,
TFM_TLL_SYMB_MAX)) < 0)
return -1;
@@ -154,7 +154,7 @@ att_ecrire(FILE *f, struct tfm *tfm)
}
/* Afficher les transitions finales. */
if (tfm_tfinal(tfm, ietat))
- fprintf(f, "%ld\n", ietat);
+ fprintf(f, "%zu\n", ietat);
}
return 0;