mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 02:59:21 +02:00
Fix writing of low qword of floatx80 real type into 10-byte array on big endian systems
This commit is contained in:
parent
3db060e47a
commit
8ae28b4846
@ -1945,7 +1945,7 @@ begin
|
|||||||
softfloat_exception_mask:=local_softfloat_exception_mask;
|
softfloat_exception_mask:=local_softfloat_exception_mask;
|
||||||
{$ifdef FPC_BIG_ENDIAN}
|
{$ifdef FPC_BIG_ENDIAN}
|
||||||
pword(@floatx80_ba[0])^:=floatx80_e.high;
|
pword(@floatx80_ba[0])^:=floatx80_e.high;
|
||||||
pqword(@floatx80_ba[8])^:=floatx80_e.low;
|
unaligned(pqword(@floatx80_ba[2])^):=floatx80_e.low;
|
||||||
{$else}
|
{$else}
|
||||||
pword(@floatx80_ba[8])^:=floatx80_e.high;
|
pword(@floatx80_ba[8])^:=floatx80_e.high;
|
||||||
pqword(@floatx80_ba[0])^:=floatx80_e.low;
|
pqword(@floatx80_ba[0])^:=floatx80_e.low;
|
||||||
|
Loading…
Reference in New Issue
Block a user