Преглед изворни кода

Use ptruint instead of longint cast for self address for WRITE_DEBUG

git-svn-id: trunk@29054 -
pierre пре 10 година
родитељ
комит
42be0dd306
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      rtl/unix/tthread.inc

+ 1 - 1
rtl/unix/tthread.inc

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