summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-27 13:54:42 +0100
committerMattes D <github@xoft.cz>2013-12-27 13:54:42 +0100
commit194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6 (patch)
tree65a4af510bf272fc302c40dd5e2b7c8302520e0c /src/Bindings/LuaState.cpp
parentMerge pull request #476 from mc-server/apidump-writingplugin (diff)
parentLua is built statically on *nix. (diff)
downloadcuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar.gz
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar.bz2
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar.lz
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar.xz
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.tar.zst
cuberite-194a1b208ff91fed07bfd3e38d9593d3ac9b7ac6.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index cfa3f70ca..64a818a60 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -18,7 +18,7 @@ extern "C"
// fwd: SQLite/lsqlite3.c
extern "C"
{
- LUALIB_API int luaopen_lsqlite3(lua_State * L);
+ int luaopen_lsqlite3(lua_State * L);
}
// fwd: LuaExpat/lxplib.c:
@@ -309,7 +309,7 @@ void cLuaState::Push(const AStringVector & a_Vector)
{
ASSERT(IsValid());
- lua_createtable(m_LuaState, a_Vector.size(), 0);
+ lua_createtable(m_LuaState, (int)a_Vector.size(), 0);
int newTable = lua_gettop(m_LuaState);
int index = 1;
for (AStringVector::const_iterator itr = a_Vector.begin(), end = a_Vector.end(); itr != end; ++itr, ++index)