aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-29 14:41:59 -0700
committerMichael Forney <mforney@mforney.org>2021-09-29 14:41:59 -0700
commit55395c5e81f8769315888bee61b67e6bbf5da5eb (patch)
tree205855a57111431aaa14fb9992124d37ad98698f /qbe.c
parente196f1607a9f07198653431681617a601edc07f3 (diff)
Use unsigned long long for sizes and offsets
We don't need exact-width integer types here.
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qbe.c b/qbe.c
index f6ac39b..529df02 100644
--- a/qbe.c
+++ b/qbe.c
@@ -1128,7 +1128,7 @@ emittype(struct type *t)
fputs("type ", stdout);
emitvalue(t->value);
if (t == targ->typevalist) {
- printf(" = align %d { %" PRIu64 " }\n", t->align, t->size);
+ printf(" = align %d { %llu }\n", t->align, t->size);
return;
}
fputs(" = { ", stdout);
@@ -1427,6 +1427,6 @@ emitdata(struct decl *d, struct init *init)
}
assert(offset <= d->type->size);
if (offset < d->type->size)
- printf("z %" PRIu64 " ", d->type->size - offset);
+ printf("z %llu ", d->type->size - offset);
puts("}");
}