diff --git a/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java index a7f21111c9d..b4a7ff5588f 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java @@ -54,7 +54,7 @@ public class TestTieredMergePolicy extends BaseMergePolicyTestCase { totalMaxDoc += sci.info.maxDoc(); long byteSize = sci.sizeInBytes(); double liveRatio = 1 - (double) sci.getDelCount() / sci.info.maxDoc(); - long weightedByteSize = (long) Math.round(liveRatio * byteSize); + long weightedByteSize = Math.round(liveRatio * byteSize); totalBytes += weightedByteSize; minSegmentBytes = Math.min(minSegmentBytes, weightedByteSize); }