From c830bb55c399be3a9640f713af327c92b3a3773b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 13 Jan 2025 19:46:35 +0900 Subject: [PATCH] [qfcc] Use default_type on generic spec Needed for implied int return types (unsigned etc). --- tools/qfcc/source/function.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index c1e48a5ad..ca8338e6c 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -288,6 +288,7 @@ parse_generic_function (const char *name, specifier_t spec, rua_ctx_t *ctx) if (!spec.is_generic) { return nullptr; } + spec = default_type (spec, spec.sym); // fake parameter for the return type param_t ret_param = { .next = spec.params,