diff --git a/lucene/core/src/test/org/apache/lucene/index/TestMaxTermFrequency.java b/lucene/core/src/test/org/apache/lucene/index/TestMaxTermFrequency.java index 806145e4578..97dc661e446 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestMaxTermFrequency.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestMaxTermFrequency.java @@ -107,7 +107,7 @@ public class TestMaxTermFrequency extends LuceneTestCase { @Override public long encodeNormValue(float f) { - return (long) f; + return (byte) f; } @Override