mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 05:19:17 +00:00
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:
parent
ff60d29945
commit
e8f9e80b74
@ -111,7 +111,7 @@ class IntsImpl {
|
|||||||
minValue = maxValue = 0;
|
minValue = maxValue = 0;
|
||||||
}
|
}
|
||||||
// if we exceed the range of positive longs we must switch to fixed ints
|
// 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);
|
writePackedInts(docCount);
|
||||||
} else {
|
} else {
|
||||||
writeFixedInts(docCount);
|
writeFixedInts(docCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user