Use ptruint instead of longint cast for self address for WRITE_DEBUG

git-svn-id: trunk@29054 -
This commit is contained in:
pierre 2014-11-10 23:09:06 +00:00
parent dc1446d32a
commit 42be0dd306

View File

@ -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');