Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok authored and DedSec256 committed Sep 6, 2023
1 parent 04534f9 commit 9b14288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compiler/AbstractIL/ilread.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,8 @@ let seekReadIndexedRowsRange numRows binaryChop (reader: ISeekReadIndexedRowRead
// now read off rows, forward and backwards
let mid = (low + high) / 2

startRid <- mid

// read backwards
let mutable fin = false
let mutable curr = mid - 1
Expand All @@ -1246,8 +1248,6 @@ let seekReadIndexedRowsRange numRows binaryChop (reader: ISeekReadIndexedRowRead

curr <- curr - 1

endRid <- mid

// read forward
let mutable fin = false
let mutable curr = mid
Expand Down Expand Up @@ -1279,7 +1279,7 @@ let seekReadIndexedRowsRange numRows binaryChop (reader: ISeekReadIndexedRowRead

let mutable fin = false

while not fin do
while rid <= numRows && not fin do
reader.GetRow(rid, &row)

if reader.CompareKey(reader.GetKey(&row)) = 0 then
Expand All @@ -1292,7 +1292,7 @@ let seekReadIndexedRowsRange numRows binaryChop (reader: ISeekReadIndexedRowRead
let seekReadIndexedRowsByInterface numRows binaryChop (reader: ISeekReadIndexedRowReader<'RowT, _, _>) =
let startRid, endRid = seekReadIndexedRowsRange numRows binaryChop reader

if startRid < 0 || endRid < startRid then
if startRid <= 0 || endRid < startRid then
[||]
else

Expand Down

0 comments on commit 9b14288

Please sign in to comment.