mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:19:25 +02:00
Use ptrint to cast a pointer to an integer
git-svn-id: trunk@15888 -
This commit is contained in:
parent
5ca1bd2a32
commit
a2d12c557d
@ -330,7 +330,7 @@ var p : pchar;
|
||||
begin
|
||||
p:=gdberrorbuf.buf;
|
||||
if (p^=#0) and got_error then
|
||||
GetError:=pchar(longint(gdboutputbuf.buf)+gdboutputbuf.idx)
|
||||
GetError:=pchar(ptrint(gdboutputbuf.buf)+gdboutputbuf.idx)
|
||||
else
|
||||
GetError:=p;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user