Fix nightly compatibility tests after #12116.

This commit is contained in:
Adrien Grand 2023-02-07 10:46:30 +01:00
parent bc09c2a0d9
commit 8b572f074e
1 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ public final class Lucene50CompressingStoredFieldsWriter extends StoredFieldsWri
++numStoredFieldsInDoc; ++numStoredFieldsInDoc;
final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_LONG; final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_LONG;
bufferedDocs.writeVLong(infoAndBits); bufferedDocs.writeVLong(infoAndBits);
writeTLong(bufferedDocs, value); writeTLong(EndiannessReverserUtil.wrapDataOutput(bufferedDocs), value);
} }
@Override @Override
@ -297,7 +297,7 @@ public final class Lucene50CompressingStoredFieldsWriter extends StoredFieldsWri
++numStoredFieldsInDoc; ++numStoredFieldsInDoc;
final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_FLOAT; final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_FLOAT;
bufferedDocs.writeVLong(infoAndBits); bufferedDocs.writeVLong(infoAndBits);
writeZFloat(bufferedDocs, value); writeZFloat(EndiannessReverserUtil.wrapDataOutput(bufferedDocs), value);
} }
@Override @Override
@ -305,7 +305,7 @@ public final class Lucene50CompressingStoredFieldsWriter extends StoredFieldsWri
++numStoredFieldsInDoc; ++numStoredFieldsInDoc;
final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_DOUBLE; final long infoAndBits = (((long) info.number) << TYPE_BITS) | NUMERIC_DOUBLE;
bufferedDocs.writeVLong(infoAndBits); bufferedDocs.writeVLong(infoAndBits);
writeZDouble(bufferedDocs, value); writeZDouble(EndiannessReverserUtil.wrapDataOutput(bufferedDocs), value);
} }
@Override @Override