Compiler understands type "Extended" as "Double".
Original Reporter info from Mantis: Dmitry Yershov
-
Reporter name: Dmitry Yershov
Original Reporter info from Mantis: Dmitry Yershov
- Reporter name: Dmitry Yershov
Description:
The x64 fpc compiler understands the type "Extended" as the "Double".
Therefore the example "p1" stops on compiler error.
Run example "p2" to see that the size of "Extended" is the same as for "Double".
Steps to reproduce:
program p1;
procedure Test(aValue: Double); overload;
begin
WriteLn(aValue);
end;
procedure Test(aValue: Extended); overload;
begin
WriteLn(aValue);
end;
begin
Test(2.9);
end.
Additional information:
program p;
begin
WriteLn('SizeOf(Real)=',SizeOf(Real));
WriteLn('SizeOf(Double)=',SizeOf(Double));
WriteLn('SizeOf(Extended)=',SizeOf(Extended),', but has to be 10');
Readln;
end.
Mantis conversion info:
- Mantis ID: 34378
- OS: Windows
- Build: x86_64-win64-win32/win64
- Platform: x64
- Version: 3.0.4