diff options
| -rw-r--r-- | Sluift/Lua/LuaUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/Lua/LuaUtils.cpp b/Sluift/Lua/LuaUtils.cpp index dbadaab..9ea5cba 100644 --- a/Sluift/Lua/LuaUtils.cpp +++ b/Sluift/Lua/LuaUtils.cpp @@ -185,15 +185,15 @@ void Swift::Lua::registerExtraHelp(lua_State* L, int index, const std::string& n lua_pushvalue(L, -3); if (lua_pcall(L, 2, 0, 0) != 0) { throw Lua::Exception(lua_tostring(L, -1)); } } lua_pop(L, 3); } void Swift::Lua::pushStringArray(lua_State* L, const std::vector<std::string>& strings) { - lua_createtable(L, strings.size(), 0); + lua_createtable(L, boost::numeric_cast<int>(strings.size()), 0); for (size_t i = 0; i < strings.size(); ++i) { lua_pushstring(L, strings[i].c_str()); lua_rawseti(L, -2, boost::numeric_cast<int>(i+1)); } } |
Swift