Skip to content

Commit

Permalink
Update BlobCacheBufferedIndexInput::readVLong to correctly handle neg…
Browse files Browse the repository at this point in the history
…ative longs
  • Loading branch information
ChrisHegarty committed Oct 24, 2024
1 parent 97ed0a9 commit 9b172a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public final int readVInt() throws IOException {

@Override
public final long readVLong() throws IOException {
if (9 <= buffer.remaining()) {
if (10 <= buffer.remaining()) {
return ByteBufferStreamInput.readVLong(buffer);
} else {
return super.readVLong();
Expand Down

0 comments on commit 9b172a4

Please sign in to comment.