summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 17:06:33 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 17:06:33 +0100
commitb0ec6dfd9f29ca0c6e5d1867c87ee78b1cc0e1eb (patch)
treed792b283b4878e0fa1c8d5e89c16beee1e204329
parentf8f1ca8ef2e4d5daee1f43cd6c8a0f18fec955ba (diff)
Fix a stupid little bug in objcl_create_class.
darcs-hash:d8275472d82a1d084da97337014c776d3068857e
-rw-r--r--Objective-C/libobjcl.m4
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);