Apache Lucene open-source search software
fix ob1 that caused us to use 64 bits not 1 bit, per value
Michael McCandlesse8f9e80b743e
diff --git a/lucene/src/java/org/apache/lucene/index/values/IntsImpl.java b/lucene/src/java/org/apache/lucene/index/values/IntsImpl.javaindex af93a5212cb..29d6c929a53 100644--- a/lucene/src/java/org/apache/lucene/index/values/IntsImpl.java+++ b/lucene/src/java/org/apache/lucene/index/values/IntsImpl.java@@ -111,7 +111,7 @@ class IntsImpl {minValue = maxValue = 0;}// if we exceed the range of positive longs we must switch to fixed ints- if ((maxValue - minValue) < (((long)1) << 63) && (maxValue - minValue) > 0) {+ if ((maxValue - minValue) < (((long)1) << 63) && (maxValue - minValue) >= 0) {writePackedInts(docCount);} else {writeFixedInts(docCount);