Unverified Commit 4d6aefe1 authored by Vinicius Jarina's avatar Vinicius Jarina Committed by GitHub
Browse files

Merge pull request #231 from PsyCommando/master

Fixed issue where variadic static method arguments wouldn't get read …
parents ec9f9d23 b2329fb5
...@@ -169,7 +169,7 @@ namespace NLua.Method ...@@ -169,7 +169,7 @@ namespace NLua.Method
}; };
if (_LastCalledMethod.argTypes [i].isParamsArray) { if (_LastCalledMethod.argTypes [i].isParamsArray) {
int count = index - _LastCalledMethod.argTypes.Length; int count = _LastCalledMethod.argTypes.Length - i;
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