mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 08:09:46 +02:00
* Fix set endian handling.
git-svn-id: trunk@7918 -
This commit is contained in:
parent
8a0cc8c888
commit
b64558620f
@ -710,24 +710,23 @@ end;
|
||||
|
||||
procedure tppufile.getsmallset(var b);
|
||||
var
|
||||
l : longint;
|
||||
i : longint;
|
||||
begin
|
||||
l:=getlongint;
|
||||
longint(b):=l;
|
||||
getdata(b,4);
|
||||
if change_endian then
|
||||
for i:=0 to 3 do
|
||||
Pbyte(@b)[i]:=reverse_byte(Pbyte(@b)[i]);
|
||||
end;
|
||||
|
||||
|
||||
procedure tppufile.getnormalset(var b);
|
||||
type
|
||||
SetLongintArray = Array [0..7] of longint;
|
||||
var
|
||||
i : longint;
|
||||
begin
|
||||
getdata(b,32);
|
||||
if change_endian then
|
||||
for i:=0 to 7 do
|
||||
SetLongintArray(b)[i]:=getlongint
|
||||
else
|
||||
getdata(b,32);
|
||||
for i:=0 to 31 do
|
||||
Pbyte(@b)[i]:=reverse_byte(Pbyte(@b)[i]);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user