Commit d2c92961 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed build. (vargs error)

parent dec87218
...@@ -158,7 +158,7 @@ namespace NLua.Method ...@@ -158,7 +158,7 @@ namespace NLua.Method
}; };
if (_LastCalledMethod.argTypes [i].isParamsArray) { if (_LastCalledMethod.argTypes [i].isParamsArray) {
int count = _LastCalledMethod.argTypes.Length - index; int count = index - _LastCalledMethod.argTypes.Length;
Array paramArray = _Translator.TableToArray (valueExtractor, type.paramsArrayType, index, count); Array paramArray = _Translator.TableToArray (valueExtractor, type.paramsArrayType, index, count);
args [_LastCalledMethod.argTypes [i].index] = paramArray; args [_LastCalledMethod.argTypes [i].index] = paramArray;
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment