mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
allow assignment of any pointer type to void pointers
This commit is contained in:
parent
20394c3a4d
commit
45a1ef2140
1 changed files with 2 additions and 0 deletions
|
@ -515,6 +515,8 @@ type_assignable (type_t *dst, type_t *src)
|
|||
return 0;
|
||||
dst = dst->aux_type;
|
||||
src = src->aux_type;
|
||||
if (dst->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