We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af56858 commit d8e6a94Copy full SHA for d8e6a94
entries/ghatem-fpc/src/OneBRC.lpr
@@ -577,9 +577,11 @@ procedure TOneBRC.GenerateOutput;
577
vStations.UseLocale := False;
578
try
579
vStations.BeginUpdate;
580
- for I := 0 to N - 1 do begin
581
- vStations.Add(FDictionary.FStationNames[I]);
+ for i := 0 to cNumStations - 1 do begin
+ if FDictionary.FStationNames[i] <> '' then
582
+ vStations.Add (FDictionary.FStationNames[i]);
583
end;
584
+
585
vStations.EndUpdate;
586
vStations.CustomSort (@Compare);
587
0 commit comments