aboutsummaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-20 00:33:32 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-20 00:33:32 +0200
commitf519e6e262b4f0f3cf7f2ffd8f9634c9f05d6ed4 (patch)
treec4bdc418a03a0d617c793cb4547e0a849dc4de53 /user.c
parent04bfe7a91223ba15d868f7165e49328b1c6e86c3 (diff)
downloadmig-f519e6e262b4f0f3cf7f2ffd8f9634c9f05d6ed4.tar.gz
mig-f519e6e262b4f0f3cf7f2ffd8f9634c9f05d6ed4.tar.bz2
mig-f519e6e262b4f0f3cf7f2ffd8f9634c9f05d6ed4.zip
Fix printing size_t
Diffstat (limited to 'user.c')
-rw-r--r--user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/user.c b/user.c
index dc9e21f..e044b4f 100644
--- a/user.c
+++ b/user.c
@@ -526,7 +526,7 @@ WriteArgSize(FILE *file, const argument_t *arg)
* we have to round up.
*/
if (bsize % complex_alignof != 0)
- fprintf(file, " + %d) & ~%d", complex_alignof - 1, complex_alignof - 1);
+ fprintf(file, " + %zd) & ~%zd", complex_alignof - 1, complex_alignof - 1);
if (ptype->itIndefinite) {
fprintf(file, " : sizeof(%s *)",
@@ -841,7 +841,7 @@ WriteCheckArgSize(FILE *file, const argument_t *arg)
/* If the base type size of the data field isn`t a multiple of complex_alignof,
we have to round up. */
if (btype->itTypeSize % complex_alignof != 0)
- fprintf(file, " + %d) & ~%d", complex_alignof - 1, complex_alignof - 1);
+ fprintf(file, " + %zd) & ~%zd", complex_alignof - 1, complex_alignof - 1);
if (ptype->itIndefinite)
fprintf(file, " : sizeof(%s *)", FetchUserType(btype));