--- src/ptlib/unix/tlib.cxx	2007-10-19 02:22:32.000000000 -0400
+++ src/ptlib/unix/tlib.cxx	2008-01-06 21:15:54.000000000 -0500
@@ -642,7 +642,7 @@
 {
   if (PProcessInstance != NULL) {
     PWaitAndSignal m(PProcessInstance->threadMutex);
-    PThread & thread = PProcessInstance->activeThreads[(unsigned)id];
+    PThread & thread = PProcessInstance->activeThreads[(uintptr_t)id];
     return thread.GetThreadName();
   }
   return psprintf("%08x", id);
