From bcb72f7455c21ee9e1b7f69d911c0d0af7f68523 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 2 Oct 2019 11:17:48 +0200 Subject: [PATCH] Printing a pthread_t on platforms having a non-int pthread_id requires a cast to uintptr_t. --- modules/luabackend/reload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luabackend/reload.cc b/modules/luabackend/reload.cc index 45c4931f4..eff320908 100644 --- a/modules/luabackend/reload.cc +++ b/modules/luabackend/reload.cc @@ -56,7 +56,7 @@ void LUABackend::reload() { backend_name.clear(); - backend_name = "[LUABackend: " + uitoa(backend_pid) + " (" + uitoa(backend_count) +")] "; + backend_name = "[LUABackend: " + uitoa((uintptr_t)backend_pid) + " (" + uitoa(backend_count) +")] "; if (lua) lua_close(lua); -- 2.40.0