mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-12 02:59:48 +01:00
* Real is now defined in the system unit being an unique type, fixes #7425
git-svn-id: trunk@4628 -
This commit is contained in:
parent
9e241152a9
commit
d7fe89c63d
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -7290,6 +7290,7 @@ tests/webtbs/tw7227.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw7276.pp svneol=native#text/plain
|
tests/webtbs/tw7276.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw7372.pp svneol=native#text/plain
|
tests/webtbs/tw7372.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw7379.pp svneol=native#text/plain
|
tests/webtbs/tw7379.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw7425.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||||
|
|||||||
@ -43,7 +43,7 @@ type
|
|||||||
{$endif Test_Double_checksum}
|
{$endif Test_Double_checksum}
|
||||||
|
|
||||||
const
|
const
|
||||||
CurrentPPUVersion=63;
|
CurrentPPUVersion=64;
|
||||||
|
|
||||||
{ buffer sizes }
|
{ buffer sizes }
|
||||||
maxentrysize = 1024;
|
maxentrysize = 1024;
|
||||||
|
|||||||
@ -233,7 +233,6 @@ implementation
|
|||||||
addtype('Double',s64floattype);
|
addtype('Double',s64floattype);
|
||||||
{ extended size is the best real type for the target }
|
{ extended size is the best real type for the target }
|
||||||
addtype('Extended',pbestrealtype^);
|
addtype('Extended',pbestrealtype^);
|
||||||
addtype('Real',s64floattype);
|
|
||||||
end;
|
end;
|
||||||
{$ifdef x86}
|
{$ifdef x86}
|
||||||
if target_info.system<>system_x86_64_win64 then
|
if target_info.system<>system_x86_64_win64 then
|
||||||
|
|||||||
@ -65,6 +65,13 @@ Type
|
|||||||
Cardinal = LongWord;
|
Cardinal = LongWord;
|
||||||
Integer = SmallInt;
|
Integer = SmallInt;
|
||||||
|
|
||||||
|
{ moved here from psystem.pas
|
||||||
|
Delphi allows chose of overloaded procedure depending
|
||||||
|
on Real <-> Double, so use type here, see also tw7425.pp (FK) }
|
||||||
|
{$ifndef VER2_0}
|
||||||
|
Real = type Double;
|
||||||
|
{$endif VER2_0}
|
||||||
|
|
||||||
{$ifdef CPUI386}
|
{$ifdef CPUI386}
|
||||||
{$define CPU32}
|
{$define CPU32}
|
||||||
|
|
||||||
|
|||||||
15
tests/webtbs/tw7425.pp
Normal file
15
tests/webtbs/tw7425.pp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
procedure a(r: double); overload;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure a(r: real); overload;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure a(r: extended); overload;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
writeln(sizeof(real));
|
||||||
|
end.
|
||||||
Loading…
Reference in New Issue
Block a user