mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 22:01:01 +00:00
[qfcc] Allow obj pointer to id conversions for free
Overloaded functions taking id need to allow any obj pointer.
This commit is contained in:
parent
b0207f4dc9
commit
b9ed0dcc64
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue