diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-02-17 17:06:33 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-02-17 17:06:33 +0100 |
commit | b0ec6dfd9f29ca0c6e5d1867c87ee78b1cc0e1eb (patch) | |
tree | d792b283b4878e0fa1c8d5e89c16beee1e204329 /Objective-C | |
parent | f8f1ca8ef2e4d5daee1f43cd6c8a0f18fec955ba (diff) |
Fix a stupid little bug in objcl_create_class.
darcs-hash:d8275472d82a1d084da97337014c776d3068857e
Diffstat (limited to 'Objective-C')
-rw-r--r-- | Objective-C/libobjcl.m | 4 |
1 files changed, 2 insertions, 2 deletions
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); |