Skip to content

Commit d8e6a94

Browse files
committed
undo some changes, problematic for 400 stations
1 parent af56858 commit d8e6a94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

entries/ghatem-fpc/src/OneBRC.lpr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,11 @@ procedure TOneBRC.GenerateOutput;
577577
vStations.UseLocale := False;
578578
try
579579
vStations.BeginUpdate;
580-
for I := 0 to N - 1 do begin
581-
vStations.Add(FDictionary.FStationNames[I]);
580+
for i := 0 to cNumStations - 1 do begin
581+
if FDictionary.FStationNames[i] <> '' then
582+
vStations.Add (FDictionary.FStationNames[i]);
582583
end;
584+
583585
vStations.EndUpdate;
584586
vStations.CustomSort (@Compare);
585587

0 commit comments

Comments
 (0)