mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:11:23 +02:00
* excess precision should not be applied to comp or currency
git-svn-id: trunk@47246 -
This commit is contained in:
parent
5b06af8886
commit
ff31d95a69
@ -1884,7 +1884,8 @@ implementation
|
|||||||
floattype for results }
|
floattype for results }
|
||||||
if (right.resultdef.typ=floatdef) and
|
if (right.resultdef.typ=floatdef) and
|
||||||
(left.resultdef.typ=floatdef) and
|
(left.resultdef.typ=floatdef) and
|
||||||
(tfloatdef(left.resultdef).floattype=tfloatdef(right.resultdef).floattype) then
|
(tfloatdef(left.resultdef).floattype=tfloatdef(right.resultdef).floattype) and
|
||||||
|
not(tfloatdef(left.resultdef).floattype in [s64comp,s64currency]) then
|
||||||
begin
|
begin
|
||||||
if cs_excessprecision in current_settings.localswitches then
|
if cs_excessprecision in current_settings.localswitches then
|
||||||
resultrealdef:=pbestrealtype^
|
resultrealdef:=pbestrealtype^
|
||||||
|
Loading…
Reference in New Issue
Block a user