mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 10:09:08 +02:00
* 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:
parent
6457846435
commit
2d06d7ed46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user