From dde6901534d95ade48b2605e6d5301ee43818a9b Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 5 Aug 2016 17:50:49 -0400 Subject: [PATCH] x86: fix lua address display --- library/LuaWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaWrapper.cpp b/library/LuaWrapper.cpp index 813dec6b7..992ab355c 100644 --- a/library/LuaWrapper.cpp +++ b/library/LuaWrapper.cpp @@ -996,7 +996,7 @@ static int meta_ptr_tostring(lua_State *state) lua_getfield(state, UPVAL_METATABLE, "__metatable"); const char *cname = lua_tostring(state, -1); - lua_pushstring(state, stl_sprintf("<%s: 0x%llx>", cname, (uintptr_t)ptr).c_str()); + lua_pushstring(state, stl_sprintf("<%s: %p>", cname, (void*)ptr).c_str()); return 1; }