mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
* fix simplication of max(double,double) with both values being constants
This commit is contained in:
parent
fb3c4ff75b
commit
15398549a4
@ -2980,8 +2980,8 @@ implementation
|
||||
else if (hp2.nodetype=realconstn) then
|
||||
begin
|
||||
{ Both actual parameters are constants, so take
|
||||
the smaller of the two right now }
|
||||
if (trealconstnode(hp).value_real < trealconstnode(hp2).value_real) then
|
||||
the larger of the two right now }
|
||||
if (trealconstnode(hp).value_real > trealconstnode(hp2).value_real) then
|
||||
result:=crealconstnode.create(trealconstnode(hp).value_real,resultdef)
|
||||
else
|
||||
result:=crealconstnode.create(trealconstnode(hp2).value_real,resultdef)
|
||||
|
Loading…
Reference in New Issue
Block a user