From b0ec6dfd9f29ca0c6e5d1867c87ee78b1cc0e1eb Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 17 Feb 2008 17:06:33 +0100 Subject: Fix a stupid little bug in objcl_create_class. darcs-hash:d8275472d82a1d084da97337014c776d3068857e --- Objective-C/libobjcl.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objective-C') diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m index 67656be..43190f6 100644 --- a/Objective-C/libobjcl.m +++ b/Objective-C/libobjcl.m @@ -730,8 +730,8 @@ objcl_create_class (const char *class_name, argv[2] = &ivar_number; for (i = 0; i < ivar_number; i++) { - argv[3 + 2*i] = (void *) &ivar_names[2*i]; - argv[3 + 2*i + 1] = (void *) &ivar_names[2*i + 1]; + argv[3 + 2*i] = (void *) &ivar_names[i]; + argv[3 + 2*i + 1] = (void *) &ivar_typespecs[i]; } status = ffi_prep_cif (&cif, FFI_DEFAULT_ABI, ivar_number*2 + 3, &ffi_type_uchar, arg_types); -- cgit v1.2.3