diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-29 14:41:59 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-29 14:41:59 -0700 |
commit | 55395c5e81f8769315888bee61b67e6bbf5da5eb (patch) | |
tree | 205855a57111431aaa14fb9992124d37ad98698f /qbe.c | |
parent | e196f1607a9f07198653431681617a601edc07f3 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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("}"); } |