소스 검색

* delphi has excessprecision turned on by default

git-svn-id: trunk@47245 -
florian 4 년 전
부모
커밋
5b06af8886
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      compiler/scanner.pas

+ 8 - 0
compiler/scanner.pas

@@ -614,6 +614,14 @@ implementation
                  include(init_settings.localswitches,cs_strict_var_strings);
              end;
 
+           { in delphi mode, excess precision is by default on }
+           if ([m_delphi] * current_settings.modeswitches <> []) then
+             begin
+               include(current_settings.localswitches,cs_excessprecision);
+               if changeinit then
+                 include(init_settings.localswitches,cs_excessprecision);
+             end;
+
 {$ifdef i8086}
            { Do not force far calls in the TP mode by default, force it in other modes }
            if (m_tp7 in current_settings.modeswitches) then