mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 19:01:06 +00:00
Fix test for single overload functions
All functions are stored in the overload functions table, even those that are never explicitly overloaded, but only explicitly overloaded functions (those with @overload) use the type-qualified naming.
This commit is contained in:
parent
533fb8acc9
commit
5d8d805b60
1 changed files with 6 additions and 3 deletions
|
@ -338,9 +338,12 @@ find_function (expr_t *fexpr, expr_t *params)
|
|||
return fexpr;
|
||||
for (func_count = 0; funcs[func_count]; func_count++)
|
||||
;
|
||||
if (func_count < 1) {
|
||||
free (funcs);
|
||||
return fexpr;
|
||||
if (func_count < 2) {
|
||||
f = (overloaded_function_t *) funcs[0];
|
||||
if (func_count && !f->overloaded) {
|
||||
free (funcs);
|
||||
return fexpr;
|
||||
}
|
||||
}
|
||||
type.t.func.type = ((overloaded_function_t *) funcs[0])->type->t.func.type;
|
||||
dummy.type = find_type (&type);
|
||||
|
|
Loading…
Reference in a new issue