mirror of https://github.com/apache/lucene.git
Fix integer overflow in TestTimSorter.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
959dfcb7de
commit
578c4f9f8f
|
@ -129,7 +129,7 @@ public class TestTimSorter extends BaseSortTestCase {
|
|||
Y += X + 1;
|
||||
}
|
||||
|
||||
if(runningTotal + X <= length) {
|
||||
if((long) runningTotal + X <= length) {
|
||||
runningTotal += X;
|
||||
generateWrongElem(X, minRun, runs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue