mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 05:19:27 +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;
|
lIndex: integer;
|
||||||
begin
|
begin
|
||||||
Result := '';
|
Result := '';
|
||||||
for lIndex := Ord(Low(TFPReportSection)) to Ord(High(TFPReportSection)) do
|
for lIndex := Ord(Low(TFPReportSections)) to Ord(High(TFPReportSections)) do
|
||||||
begin
|
begin
|
||||||
if TFPReportSection(lIndex) in AValue then
|
if TFPReportSection(lIndex) in AValue then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user