From b95cdc33d97db7bb8557a4469763368ad8464541 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 8 Mar 2011 22:45:34 +0900 Subject: [PATCH] Set instace_size to the correct size. --- tools/qfcc/source/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/class.c b/tools/qfcc/source/class.c index 1cf29e590..6568be20b 100644 --- a/tools/qfcc/source/class.c +++ b/tools/qfcc/source/class.c @@ -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));