Browse Source

Use ptruint instead of longint cast for self address for WRITE_DEBUG

git-svn-id: trunk@29054 -
pierre 10 years ago
parent
commit
42be0dd306
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/unix/tthread.inc

+ 1 - 1
rtl/unix/tthread.inc

@@ -155,7 +155,7 @@ begin
   FInitialSuspended := CreateSuspended;
   FInitialSuspended := CreateSuspended;
   FFatalException := nil;
   FFatalException := nil;
   FSuspendedInternal := not CreateSuspended;
   FSuspendedInternal := not CreateSuspended;
-  WRITE_DEBUG('creating thread, self = ',longint(self));
+  WRITE_DEBUG('creating thread, self = ',ptruint(self));
   FHandle:= BeginThread(@ThreadFunc, Pointer(Self), FThreadID, StackSize);
   FHandle:= BeginThread(@ThreadFunc, Pointer(Self), FThreadID, StackSize);
   if FHandle = TThreadID(0) then
   if FHandle = TThreadID(0) then
     raise EThread.create('Failed to create new thread');
     raise EThread.create('Failed to create new thread');