Correct the type of id.

It should be struct obj_object * rather than Object *.
This commit is contained in:
Bill Currie 2012-11-11 17:22:57 +09:00
parent 35a88d873c
commit 694b268f53

View file

@ -1412,8 +1412,8 @@ init_classes (void)
class_t *class; class_t *class;
object = make_class ("Object", object_ivars, 0); object = make_class ("Object", object_ivars, 0);
type_id.t.fldptr.type = object->type;
make_class_struct (object, &type_obj_object); make_class_struct (object, &type_obj_object);
type_id.t.fldptr.type = &type_obj_object;
chain_type (&type_id); chain_type (&type_id);
class = make_class (".Class", class_ivars, object); class = make_class (".Class", class_ivars, object);