Skip to content

Commit 34486d9

Browse files
committed
off-by-1 error...
1 parent c5a3769 commit 34486d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entries/ghatem-fpc/src/onebrc.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ function RoundExDouble(const ATemp: Double): Double; inline;
2626
end;
2727
PStationData = ^TStationData;
2828

29-
TKeys = array [0..45007] of Cardinal;
30-
TValues = array [0..45007] of PStationData;
29+
TKeys = array [0..45006] of Cardinal;
30+
TValues = array [0..45006] of PStationData;
3131

3232
{ TMyDictionary }
3333

3434
TMyDictionary = class
3535
private
3636
FHashes: TKeys;
3737
FValues: TValues;
38-
FRecords: array [0..45007] of TStationData;
38+
FRecords: array [0..45006] of TStationData;
3939
procedure InternalFind(const aKey: Cardinal; out aFound: Boolean; out aIndex: Integer);
4040
public
4141
constructor Create;

0 commit comments

Comments
 (0)