diff --git a/Yafc.Parser/LuaContext.cs b/Yafc.Parser/LuaContext.cs index adf9c9e8..251dc1a0 100644 --- a/Yafc.Parser/LuaContext.cs +++ b/Yafc.Parser/LuaContext.cs @@ -353,6 +353,12 @@ private void PushManagedObject(object? value) { else if (value is int i) { lua_pushnumber(L, i); } + else if (value is long l) { + lua_pushnumber(L, l); + } + else if (value is ulong ul) { + lua_pushnumber(L, ul); + } else if (value is string s) { _ = lua_pushstring(L, s); }