summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 14:18:52 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 14:18:52 +0100
commit036cb6007d026ef5c58fa5bdfc9efb89fb092c09 (patch)
treeeaaf27be519b37ad0264fbae56becf2ec3178192 /Objective-C
parent938a371de94ecbe2b4ccc72670dbfc8a68b50aa1 (diff)
Fix objcl_create_class.
darcs-hash:4048baedb88f19262d87f2c8cc3b8352f3a00b3f
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index c933e49..67656be 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -734,7 +734,7 @@ objcl_create_class (const char *class_name,
argv[3 + 2*i + 1] = (void *) &ivar_names[2*i + 1];
}
- status = ffi_prep_cif (&cif, FFI_DEFAULT_ABI, ivar_number + 3, &ffi_type_uchar, arg_types);
+ status = ffi_prep_cif (&cif, FFI_DEFAULT_ABI, ivar_number*2 + 3, &ffi_type_uchar, arg_types);
if (status != FFI_OK)
{
[[NSException exceptionWithName: @"MLKInvalidFFITypeException"