Set instace_size to the correct size.

This commit is contained in:
Bill Currie 2011-03-08 22:45:34 +09:00
parent 4432bc0bef
commit b95cdc33d9

View file

@ -696,7 +696,7 @@ finish_class (class_t *class)
EMIT_DEF (space, meta->methods, emit_methods (class->methods,
class->name, 0));
cls->instance_size = class->ivars ? class->ivars->size : 0;
cls->instance_size = type_size (class->type);
EMIT_DEF (space, cls->ivars, emit_ivars (class->ivars, class->name));
EMIT_DEF (space, cls->methods, emit_methods (class->methods,
class->name, 1));