fix int overflow

This commit is contained in:
Mike McCandless 2016-03-13 06:28:18 -04:00
parent fa9700737a
commit fcd90b9ba6
1 changed files with 1 additions and 1 deletions

View File

@ -1177,7 +1177,7 @@ public class BKDWriter implements Closeable {
PointReader reader = slices[dim].writer.getReader(slices[dim].start);) { PointReader reader = slices[dim].writer.getReader(slices[dim].start);) {
// Partition this source according to how the splitDim split the values: // Partition this source according to how the splitDim split the values:
int nextRightCount = 0; long nextRightCount = 0;
for (long i=0;i<source.count;i++) { for (long i=0;i<source.count;i++) {
boolean result = reader.next(); boolean result = reader.next();
assert result; assert result;