Skip to content

Commit

Permalink
Fix compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Mar 26, 2024
1 parent ecd3391 commit 676e11e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void decompress(DataInput in, int originalLength, int offset, int length,
}
src.buffer().flip();

final int decompressedLen = zstd.decompress(dest.buffer(), src.buffer());
final int decompressedLen = zstd.decompress(dest, src);
if (decompressedLen != originalLength) {
throw new CorruptIndexException("Expected " + originalLength + " decompressed bytes, got " + decompressedLen, in);
}
Expand Down Expand Up @@ -183,7 +183,7 @@ public void compress(ByteBuffersDataInput buffersInput, DataOutput out) throws I
}
src.buffer().flip();

final int compressedLen = zstd.compress(dest.buffer(), src.buffer(), level);
final int compressedLen = zstd.compress(dest, src, level);
out.writeVInt(compressedLen);

for (int written = 0; written < compressedLen;) {
Expand Down

0 comments on commit 676e11e

Please sign in to comment.