From 55395c5e81f8769315888bee61b67e6bbf5da5eb Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 29 Sep 2021 14:41:59 -0700 Subject: Use unsigned long long for sizes and offsets We don't need exact-width integer types here. --- qbe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qbe.c') 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("}"); } -- cgit v1.2.3