Browse Source

* fixed condition in getbestreal

git-svn-id: trunk@39446 -
florian 7 years ago
parent
commit
52846df241
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nadd.pas

+ 1 - 1
compiler/nadd.pas

@@ -156,7 +156,7 @@ implementation
               begin
                 { when a comp or currency is used, use always the
                   best float type to calculate the result }
-                if (tfloatdef(t2).floattype in [s64comp,s64currency]) or
+                if (tfloatdef(t1).floattype in [s64comp,s64currency]) or
                   (tfloatdef(t2).floattype in [s64comp,s64currency]) or
                   (cs_excessprecision in current_settings.localswitches) then
                   result:=pbestrealtype^