summaryrefslogtreecommitdiffstats
path: root/Sluift
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift')
-rw-r--r--Sluift/Lua/LuaUtils.cpp2
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
@@ -191,7 +191,7 @@ void Swift::Lua::registerExtraHelp(lua_State* L, int index, const std::string& n
}
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));