Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Sep 21, 2024
1 parent 39acbf4 commit 01d9bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/main/java/kanzi/transform/BWTBlockCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public boolean inverse(SliceByteArray input, SliceByteArray output)
if (input.array == output.array)
return false;

int blockSize = input.length;
final int blockSize = input.length;

if (this.bsVersion > 5)
{
Expand Down Expand Up @@ -157,7 +157,7 @@ public boolean inverse(SliceByteArray input, SliceByteArray output)
return false;
}

blockSize -= headerSize;
input.length = blockSize - headerSize;
}
else
{
Expand Down

0 comments on commit 01d9bca

Please sign in to comment.