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:
Adrien Grand 2015-03-02 07:45:38 +00:00
parent 959dfcb7de
commit 578c4f9f8f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}