fix ob1 that caused us to use 64 bits not 1 bit, per value

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/docvalues@1132421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-06-05 14:34:12 +00:00
parent ff60d29945
commit e8f9e80b74

View File

@ -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);