make it so id can be assigned to any class or object pointer

This commit is contained in:
Bill Currie 2002-09-16 20:32:32 +00:00
parent 4a34960d95
commit b94077200f

View file

@ -526,6 +526,8 @@ type_assignable (type_t *dst, type_t *src)
//printf ("%s %s\n", dst_class->class_name, src_class->class_name);
if (!dst_class || dst_class == &class_id)
return 1;
if (!src_class || src_class == &class_id)
return 1;
while (dst_class != src_class && src_class) {
src_class = src_class->super_class;
//if (src_class)