浏览代码

* 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