diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-03-14 11:45:17 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-03-21 10:55:22 (GMT) |
commit | 01a76f36fe0e2ad5ea778a3ece63f39866c50362 (patch) | |
tree | 7732d1d6e9e3df53ad86ff29da1700b69c6f2e91 /Sluift | |
parent | d0d9254dcac947f92525d66078c64bee18814144 (diff) | |
download | swift-01a76f36fe0e2ad5ea778a3ece63f39866c50362.zip swift-01a76f36fe0e2ad5ea778a3ece63f39866c50362.tar.bz2 |
Sluift: Fix compilation warning
Change-Id: Ib542e69848ee85e4a017528e6ffe5da61276619a
Diffstat (limited to 'Sluift')
-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 @@ -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)); |