From 4969fb9e0b62882bb5402a13a470f2f244416389 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 31 Aug 2023 08:55:09 -0600 Subject: [PATCH] libpbd: tweak for printing pthread ID (windows is int/*nix is ptr) --- libs/pbd/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index cc691221a4..1d01dd022c 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -104,7 +104,7 @@ void PBD::debug_only_print (const char* prefix, string str) { if ((PBD::debug_bits & DEBUG::Threads).any()) { - printf ("0x%x (%s) ", (int) DEBUG_THREAD_SELF, pthread_name()); + printf ("0x%lx (%s) ", (intptr_t) DEBUG_THREAD_SELF, pthread_name()); } if ((PBD::debug_bits & DEBUG::DebugTimestamps).any()) {