allow assignment from void pointer to any pointer type

This commit is contained in:
Bill Currie 2003-04-07 21:57:26 +00:00
parent 84ee27f824
commit b7d7e7e87f

View file

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