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.
2 parents b70aa1b + 7279e9a commit 8be9469Copy full SHA for 8be9469
entries/ghatem-fpc/src/onebrc.pas
@@ -135,7 +135,7 @@ procedure TOneBRC.ExtractLineData(const aStart: Int64; const aEnd: Int64; out aL
135
aTemp := (Ord(FData[aEnd]) - c0ascii)
136
+ 10 *(Ord(FData[aEnd-2]) - c0ascii);
137
vDigit := Ord(FData[aEnd-3]);
138
- if vDigit >= c0ascii then begin
+ if (vDigit >= c0ascii) and (vDigit <= c9ascii) then begin
139
aTemp := aTemp + 100*(Ord(FData[aEnd-3]) - c0ascii);
140
vDigit := Ord(FData[aEnd-4]);
141
if vDigit = cNegAscii then
0 commit comments