소스 검색

* fixed condition in getbestreal

git-svn-id: trunk@39446 -
florian 7 년 전
부모
커밋
52846df241
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/nadd.pas

+ 1 - 1
compiler/nadd.pas

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