mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
Use pdword to avoid range check erro in tentryfile.getdword method
git-svn-id: trunk@40103 -
This commit is contained in:
parent
89ee644919
commit
7a07f848e8
@ -668,7 +668,7 @@ begin
|
||||
end;
|
||||
if bufsize-bufidx>=sizeof(dword) then
|
||||
begin
|
||||
result:=Unaligned(plongint(@buf[bufidx])^);
|
||||
result:=Unaligned(pdword(@buf[bufidx])^);
|
||||
inc(bufidx,sizeof(longint));
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user