misaligned data exception
Original Reporter info from Mantis: gagranov
-
Reporter name: Gennady Agranov
Original Reporter info from Mantis: gagranov
- Reporter name: Gennady Agranov
Description:
My CPU is ARMv7 and FPC was compiled for this CPU
If I use {$PACKRECORDS 1} and double field inside the record in not aligned
call to Format('%f',[field]) throws an exception
Steps to reproduce:
// {$PACKRECORDS 1}
program policing_test;
uses SysUtils;
type ABC = record
e: double;
i: boolean;
f: double;
end;
var A: ABC;
begin
a.e := 3.1415; //ok
a.f := 2.7181; //ok
writeln(Format('%8f',[a.e])); //ok
writeln(Format('%8f',[a.f])); //exception
end.
Mantis conversion info:
- Mantis ID: 30872
- OS: Raspbian
- Platform: arm-linux
- Version: 3.0.1