Skip to content

Commit 7c76c18

Browse files
committed
nodeSize
1 parent 941d2f5 commit 7c76c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lucene/core/src/java25/org/apache/lucene/internal/vectorization/Lucene104MemorySegmentScalarQuantizedVectorScorer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ OptimizedScalarQuantizer.QuantizationResult getQuantizationResult() {
181181
Node getNode(int ord) throws IOException {
182182
checkOrdinal(ord);
183183
long byteOffset = (long) ord * nodeSize;
184-
MemorySegment vector = input.segmentSliceOrNull(byteOffset, vectorByteSize);
184+
MemorySegment vector = input.segmentSliceOrNull(byteOffset, nodeSize);
185185
if (vector == null) {
186186
if (scratch == null) {
187187
scratch = new byte[nodeSize];

0 commit comments

Comments
 (0)