mirror of https://github.com/apache/lucene.git
LUCENE-4839: Fix bug in SorterTemplate.timSort().
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2549f2e1ef
commit
cd5b023219
|
@ -223,7 +223,7 @@ public abstract class SorterTemplate {
|
|||
final int pivot = runBase(i);
|
||||
final int h = runEnd(i);
|
||||
merge(l, pivot, h, pivot - l, h - pivot);
|
||||
for (int j = 1; j <= i+1; ++j) {
|
||||
for (int j = i + 1; j > 0; --j) {
|
||||
setRunEnd(j, runEnd(j-1));
|
||||
}
|
||||
--stackSize;
|
||||
|
|
Loading…
Reference in New Issue