Minor performance tweak to handle LuaType casting better if type is already a LuaType
This commit is contained in:
parent
ea24695128
commit
95f76bc5e3
|
@ -8,6 +8,7 @@ namespace Upsilon.BaseTypes
|
|||
{
|
||||
public static LuaType ToLuaType(this object o)
|
||||
{
|
||||
if (o is LuaType type) return type;
|
||||
switch (o)
|
||||
{
|
||||
case bool b:
|
||||
|
|
Loading…
Reference in New Issue