mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 03:37:35 +01:00
* do not convert input of unaryminusnode to sint if the original is currency; fixes tfloattostr for 64 bit platforms which use int64 as currency type
git-svn-id: trunk@6110 -
This commit is contained in:
parent
c9148d67a9
commit
89257f94c6
@ -651,8 +651,10 @@ implementation
|
||||
{$endif cpu64bit}
|
||||
else if (left.resultdef.typ=orddef) then
|
||||
begin
|
||||
inserttypeconv(left,sinttype);
|
||||
resultdef:=left.resultdef;
|
||||
if (torddef(left.resultdef).ordtype <> scurrency) then begin
|
||||
inserttypeconv(left,sinttype);
|
||||
resultdef:=left.resultdef;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user