mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 22:20:19 +02:00
Use ptruint instead of longint cast for self address for WRITE_DEBUG
git-svn-id: trunk@29054 -
This commit is contained in:
parent
dc1446d32a
commit
42be0dd306
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user