mirror of https://github.com/apache/lucene.git
Fix integer overflow.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1396088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d08dc9957
commit
b032fb49f0
|
@ -363,7 +363,7 @@ public enum CompressingStoredFieldsIndex {
|
|||
throw new CorruptIndexException("Expected " + numChunks + " chunks, but got " + startPointerDeltas.size());
|
||||
}
|
||||
final PackedInts.Mutable startPointers = PackedInts.getMutable(numChunks, bitsPerStartPointer, PackedInts.COMPACT);
|
||||
int startPointer = 0;
|
||||
long startPointer = 0;
|
||||
for (int i = 0; i < numChunks; ++i) {
|
||||
startPointer += startPointerDeltas.next();
|
||||
startPointers.set(i, startPointer);
|
||||
|
|
Loading…
Reference in New Issue