mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
allow assignment from void pointer to any pointer type
This commit is contained in:
parent
84ee27f824
commit
b7d7e7e87f
1 changed files with 2 additions and 0 deletions
|
@ -519,6 +519,8 @@ type_assignable (type_t *dst, type_t *src)
|
|||
src = src->aux_type;
|
||||
if (dst->type == ev_void)
|
||||
return 1;
|
||||
if (src->type == ev_void)
|
||||
return 1;
|
||||
if ((dst->type != ev_object && dst->type != ev_class)
|
||||
|| (src->type != ev_object && src->type != ev_class))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue