allow assignment of any pointer type to void pointers

This commit is contained in:
Bill Currie 2002-08-15 20:13:18 +00:00
parent 20394c3a4d
commit 45a1ef2140

View file

@ -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;