summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-16 13:43:42 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-16 15:40:07 +0200
commit291c50e6fc89dea5d2e0ba731a2188a4ccacbd06 (patch)
tree7d0ae7de7924d40e10e7275f9eaef601f229447a
parentdf1bbb796753c98e68c858a45b83f3cc918ee68f (diff)
MLKCompiledClosure: Fix an off-by-one error in argument handling.
-rw-r--r--MLKCompiledClosure.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/MLKCompiledClosure.m b/MLKCompiledClosure.m
index 6737acc..85b1bf5 100644
--- a/MLKCompiledClosure.m
+++ b/MLKCompiledClosure.m
@@ -72,7 +72,7 @@
for (i = 1; i < argc - 1; i++)
{
arg_types[i] = &ffi_type_pointer;
- argpointers[i-1] = denullify([arguments objectAtIndex:i]);
+ argpointers[i-1] = denullify([arguments objectAtIndex:(i-1)]);
argv[i] = &argpointers[i-1];
}