Explorar o código

* fixed condition in getbestreal

git-svn-id: trunk@39446 -
florian %!s(int64=7) %!d(string=hai) anos
pai
achega
52846df241
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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^