From 036cb6007d026ef5c58fa5bdfc9efb89fb092c09 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 17 Feb 2008 14:18:52 +0100 Subject: Fix objcl_create_class. darcs-hash:4048baedb88f19262d87f2c8cc3b8352f3a00b3f --- Objective-C/libobjcl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3