lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1663198 - /lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java
Date Mon, 02 Mar 2015 07:44:44 GMT
Author: jpountz
Date: Mon Mar  2 07:44:44 2015
New Revision: 1663198

URL: http://svn.apache.org/r1663198
Log:
Fix integer overflow in the TestTimSorter.

Modified:
    lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java?rev=1663198&r1=1663197&r2=1663198&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java
Mon Mar  2 07:44:44 2015
@@ -129,7 +129,7 @@ public class TestTimSorter extends BaseS
       Y += X + 1;
     }
 
-    if(runningTotal + X <= length) {
+    if((long) runningTotal + X <= length) {
       runningTotal += X;
       generateWrongElem(X, minRun, runs);
     }



Mime
View raw message