Explorar o código

Use pdword to avoid range check erro in tentryfile.getdword method

git-svn-id: trunk@40103 -
pierre %!s(int64=6) %!d(string=hai) anos
pai
achega
7a07f848e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/entfile.pas

+ 1 - 1
compiler/entfile.pas

@@ -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