From 3833ff2e0964bfe34e999122250546076393e100 Mon Sep 17 00:00:00 2001 From: Vitaly Pronkin Date: Tue, 19 Jul 2016 01:37:29 +1200 Subject: [PATCH] proper 64bit address formatting --- library/LuaWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaWrapper.cpp b/library/LuaWrapper.cpp index 08af93e78..0c5848408 100644 --- a/library/LuaWrapper.cpp +++ b/library/LuaWrapper.cpp @@ -993,7 +993,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%08x>", cname, (uintptr_t)ptr).c_str()); + lua_pushstring(state, stl_sprintf("<%s: 0x%llx>", cname, (uintptr_t)ptr).c_str()); return 1; }