Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
901a9a974e
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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;