summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];
}