瀏覽代碼

compiler: don't create set constants from arrays with high bound > 255 if elements of array are lower than 255

git-svn-id: trunk@17372 -
paul 14 年之前
父節點
當前提交
901a9a974e
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/ncnv.pas

+ 1 - 2
compiler/ncnv.pas

@@ -365,8 +365,7 @@ implementation
                    constsetlo:=tenumdef(def).min;
                  { for constant set elements, delphi allows the usage of elements of enumerations which
                    have value>255 if there is no element with a value > 255 used }
-                 if (maybetruncenumrange) and
-                    (m_delphi in current_settings.modeswitches) then
+                 if (maybetruncenumrange) then
                    begin
                     if constsethi>255 then
                       constsethi:=255;