diff options
Diffstat (limited to 'libobjc/gc.c')
-rw-r--r-- | libobjc/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/gc.c b/libobjc/gc.c index 9b117dc..d009230 100644 --- a/libobjc/gc.c +++ b/libobjc/gc.c @@ -304,7 +304,7 @@ __objc_generate_gc_type_description (Class class) /* The number of bits in the mask is the size of an instance in bytes divided by the size of a pointer. */ - bits_no = (ROUND (class_get_instance_size (class), sizeof (void *)) + bits_no = (ROUND (class_getInstanceSize (class), sizeof (void *)) / sizeof (void *)); size = ROUND (bits_no, BITS_PER_WORD) / BITS_PER_WORD; mask = objc_atomic_malloc (size * sizeof (int)); |