Make _OBJ_CLASS_foo the correct type.

It needs to be type_obj_class, but I had gotten confused earlier when
rearranging the type names as I was having trouble with "not a class"
errors.
This commit is contained in:
Bill Currie 2012-11-10 13:45:38 +09:00
parent 06fd912a09
commit 0cf16ac558

View file

@ -222,7 +222,7 @@ class_symbol (class_type_t *class_type, int external)
break;
case ct_class:
name = va ("_OBJ_CLASS_%s", class_type->c.class->name);
type = &type_obj_object;
type = &type_obj_class;
break;
case ct_protocol:
return 0; // probably in error recovery