[qfcc] Use default_type on generic spec

Needed for implied int return types (unsigned etc).
This commit is contained in:
Bill Currie 2025-01-13 19:46:35 +09:00
parent 388a1c6c28
commit c830bb55c3

View file

@ -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,