Fix initial sizing of MonotonicAppendingLongBuffer.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1503808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2013-07-16 17:50:00 +00:00
parent 360452940e
commit 454d269e0d
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public final class MonotonicAppendingLongBuffer extends AbstractAppendingLongBuf
* @param pageSize the size of a single page */
public MonotonicAppendingLongBuffer(int initialPageCount, int pageSize) {
super(initialPageCount, pageSize);
averages = new float[pageSize];
averages = new float[initialPageCount];
}
/** Create an {@link MonotonicAppendingLongBuffer} with initialPageCount=16