* iterate only on the valid elements of the set to avoid compilation errors if the for loop is unrolled, resolves #36150

git-svn-id: trunk@43190 -
This commit is contained in:
florian 2019-10-13 15:17:46 +00:00
parent 6457846435
commit 2d06d7ed46

View File

@ -2498,7 +2498,7 @@ function ReportSectionsToString(AValue: TFPReportSections): string;
lIndex: integer;
begin
Result := '';
for lIndex := Ord(Low(TFPReportSection)) to Ord(High(TFPReportSection)) do
for lIndex := Ord(Low(TFPReportSections)) to Ord(High(TFPReportSections)) do
begin
if TFPReportSection(lIndex) in AValue then
begin