summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-09-24 16:04:44 +0200
committerLukas Pioch <lukas@zgow.de>2015-09-25 17:09:19 +0200
commite56aa4032d6fad249fc7729c7ce8975cf617eb9c (patch)
tree3b6665c38ce5881b0d8345ee7bc495a5b97a0457 /src/Bindings/ManualBindings.cpp
parentMerge pull request #2491 from cuberite/FixLilypadPopout (diff)
downloadcuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.gz
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.bz2
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.lz
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.xz
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.zst
cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.zip
Diffstat (limited to 'src/Bindings/ManualBindings.cpp')
-rw-r--r--src/Bindings/ManualBindings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 876d4e280..3fc5b477c 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -1151,7 +1151,7 @@ static int tolua_cPlayer_GetPermissions(lua_State * tolua_S)
cPlayer * self = reinterpret_cast<cPlayer *>(tolua_tousertype(tolua_S, 1, nullptr));
if (self == nullptr)
{
- LOGWARNING("%s: invalid self (%p)", __FUNCTION__, self);
+ LOGWARNING("%s: invalid self (%p)", __FUNCTION__, static_cast<void *>(self));
return 0;
}
@@ -1182,7 +1182,7 @@ static int tolua_cPlayer_GetRestrictions(lua_State * tolua_S)
cPlayer * self = reinterpret_cast<cPlayer *>(tolua_tousertype(tolua_S, 1, nullptr));
if (self == nullptr)
{
- LOGWARNING("%s: invalid self (%p)", __FUNCTION__, self);
+ LOGWARNING("%s: invalid self (%p)", __FUNCTION__, static_cast<void *>(self));
return 0;
}
@@ -1211,7 +1211,7 @@ static int tolua_cPlayer_OpenWindow(lua_State * tolua_S)
cWindow * wnd = reinterpret_cast<cWindow *>(tolua_tousertype(tolua_S, 2, nullptr));
if ((self == nullptr) || (wnd == nullptr))
{
- LOGWARNING("%s: invalid self (%p) or wnd (%p)", __FUNCTION__, self, wnd);
+ LOGWARNING("%s: invalid self (%p) or wnd (%p)", __FUNCTION__, static_cast<void *>(self), static_cast<void *>(wnd));
return 0;
}
@@ -1292,7 +1292,7 @@ static int tolua_SetObjectCallback(lua_State * tolua_S)
OBJTYPE * self = reinterpret_cast<OBJTYPE *>(tolua_tousertype(tolua_S, 1, nullptr));
if (self == nullptr)
{
- LOGWARNING("%s: invalid self (%p)", __FUNCTION__, self);
+ LOGWARNING("%s: invalid self (%p)", __FUNCTION__, static_cast<void *>(self));
return 0;
}
int FnRef = luaL_ref(tolua_S, LUA_REGISTRYINDEX); // Store function reference for later retrieval