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:
Michael McCandless 2012-08-07 11:45:54 +00:00
parent 51987642c2
commit 7a0cdacb6e
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ public final class ForUtil {
// nocommit assert header isn't "malformed", ie besides
// numBytes / bit-width there is nothing else!
int numBits = ((header >> 8) & MASK[6]);
decompressCore(intBuffer, data, numBits);
decompressCore(intBuffer, data, getNumBits(header));
}
static void decompressCore(IntBuffer intBuffer, int[] data, int numBits) {