From 291c50e6fc89dea5d2e0ba731a2188a4ccacbd06 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 16 Aug 2008 13:43:42 +0200 Subject: MLKCompiledClosure: Fix an off-by-one error in argument handling. --- MLKCompiledClosure.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3