mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 21:46:00 +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
|
begin
|
||||||
p:=gdberrorbuf.buf;
|
p:=gdberrorbuf.buf;
|
||||||
if (p^=#0) and got_error then
|
if (p^=#0) and got_error then
|
||||||
GetError:=pchar(longint(gdboutputbuf.buf)+gdboutputbuf.idx)
|
GetError:=pchar(ptrint(gdboutputbuf.buf)+gdboutputbuf.idx)
|
||||||
else
|
else
|
||||||
GetError:=p;
|
GetError:=p;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user