mirror of https://github.com/apache/lucene.git
LUCENE-3892: fix incorrect numBits computation
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/pforcodec_3892@1370194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51987642c2
commit
7a0cdacb6e
|
@ -74,9 +74,7 @@ public final class ForUtil {
|
||||||
|
|
||||||
// nocommit assert header isn't "malformed", ie besides
|
// nocommit assert header isn't "malformed", ie besides
|
||||||
// numBytes / bit-width there is nothing else!
|
// numBytes / bit-width there is nothing else!
|
||||||
int numBits = ((header >> 8) & MASK[6]);
|
decompressCore(intBuffer, data, getNumBits(header));
|
||||||
|
|
||||||
decompressCore(intBuffer, data, numBits);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decompressCore(IntBuffer intBuffer, int[] data, int numBits) {
|
static void decompressCore(IntBuffer intBuffer, int[] data, int numBits) {
|
||||||
|
|
Loading…
Reference in New Issue