From 639818cca510aeb5d415d5babd873a9f1d0f568b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Dec 2024 13:12:27 +0900 Subject: [PATCH] [qfcc] Handle `unsigned int` correctly I'd missed the one case, so such declarations wound up just `int` --- tools/qfcc/source/type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index d10f42960..18ee5542e 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -534,6 +534,8 @@ default_type (specifier_t spec, const symbol_t *sym) spec.type = &type_ulong; } else if (spec.is_long) { spec.type = &type_long; + } else if (spec.is_unsigned) { + spec.type = &type_uint; } } } else {