lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: svn commit: r1396088 - /lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java
Date Tue, 09 Oct 2012 16:34:11 GMT
Test2BStoredFields? :)

On Tue, Oct 9, 2012 at 12:13 PM,  <jpountz@apache.org> wrote:
> Author: jpountz
> Date: Tue Oct  9 16:13:00 2012
> New Revision: 1396088
>
> URL: http://svn.apache.org/viewvc?rev=1396088&view=rev
> Log:
> Fix integer overflow.
>
> Modified:
>     lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java
>
> Modified: lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java?rev=1396088&r1=1396087&r2=1396088&view=diff
> ==============================================================================
> --- lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java
(original)
> +++ lucene/dev/trunk/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java
Tue Oct  9 16:13:00 2012
> @@ -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);
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message