Commit 135495f2 authored by Vlad Soroka's avatar Vlad Soroka Committed by Vinicius Jarina
Browse files

Check the the type to be numeric rather than a number. The side effect of...

Check the the type to be numeric rather than a number. The side effect of IsNumber check causes numeric strings to be treated as numbers which leads to wrong overloaded method identification
parent 6001272c
...@@ -118,7 +118,7 @@ namespace NLua ...@@ -118,7 +118,7 @@ namespace NLua
if (netParamIsNumeric) if (netParamIsNumeric)
{ {
if (luaState.IsNumber(stackPos) && !netParamIsString) if (luaState.IsNumericType(stackPos) && !netParamIsString)
return _extractValues[paramType]; return _extractValues[paramType];
} }
else if (paramType == typeof(bool)) else if (paramType == typeof(bool))
......
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