summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-19 16:25:18 +0200
committertycho <work.tycho@gmail.com>2015-05-19 18:09:05 +0200
commit480052c058f3a8ebc70f024933ba5deb6baf0b08 (patch)
tree139f97344eb2f10201021b0cb3f582a7a024d9ec /src/Bindings/ManualBindings.cpp
parentFixed some more warnings (diff)
downloadcuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar.gz
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar.bz2
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar.lz
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar.xz
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.tar.zst
cuberite-480052c058f3a8ebc70f024933ba5deb6baf0b08.zip
Diffstat (limited to 'src/Bindings/ManualBindings.cpp')
-rw-r--r--src/Bindings/ManualBindings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index ff904d74a..bce1891e2 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -158,7 +158,7 @@ static int tolua_UncompressStringZLIB(lua_State * tolua_S)
// Get the params:
AString ToUncompress;
- int UncompressedSize;
+ size_t UncompressedSize;
S.GetStackValues(1, ToUncompress, UncompressedSize);
// Compress the string:
@@ -1801,7 +1801,7 @@ static int tolua_cMojangAPI_GetUUIDsFromPlayerNames(lua_State * L)
// Convert the input table into AStringVector:
AStringVector PlayerNames;
int NumNames = luaL_getn(L, 2);
- PlayerNames.reserve(NumNames);
+ PlayerNames.reserve(static_cast<size_t>(NumNames));
for (int i = 1; i <= NumNames; i++)
{
lua_rawgeti(L, 2, i);