[qfcc] Allow obj pointer to id conversions for free

Overloaded functions taking id need to allow any obj pointer.
This commit is contained in:
Bill Currie 2024-11-24 18:38:45 +09:00
parent b0207f4dc9
commit b9ed0dcc64

View file

@ -578,6 +578,10 @@ check_type (const type_t *type, callparm_t param, unsigned *cost, bool promote)
if (type == param.type) {
return true;
}
int ret = obj_types_assignable (type, param.type);
if (ret >= 0) {
return ret;
}
if (!promote) {
// want exact match
return false;