Fix writing of low qword of floatx80 real type into 10-byte array on big endian systems

This commit is contained in:
Pierre Muller 2024-01-25 10:13:21 +00:00
parent 3db060e47a
commit 8ae28b4846

View File

@ -1945,7 +1945,7 @@ begin
softfloat_exception_mask:=local_softfloat_exception_mask;
{$ifdef FPC_BIG_ENDIAN}
pword(@floatx80_ba[0])^:=floatx80_e.high;
pqword(@floatx80_ba[8])^:=floatx80_e.low;
unaligned(pqword(@floatx80_ba[2])^):=floatx80_e.low;
{$else}
pword(@floatx80_ba[8])^:=floatx80_e.high;
pqword(@floatx80_ba[0])^:=floatx80_e.low;