fix the bug of vector index end ptr set

This commit is contained in:
lion 2022-07-16 12:14:31 +08:00
parent 52f1c5df35
commit f8deb67b3a
1 changed files with 2 additions and 2 deletions

View File

@ -183,9 +183,9 @@ public class Maker {
long sPtr = Util.getIntLong(vectorIndex, idx); long sPtr = Util.getIntLong(vectorIndex, idx);
if (sPtr == 0) { if (sPtr == 0) {
Util.write(vectorIndex, idx, ptr, 4); Util.write(vectorIndex, idx, ptr, 4);
Util.write(vectorIndex, idx + 4, ptr, 4); Util.write(vectorIndex, idx + 4, ptr + SegmentIndexSize, 4);
} else { } else {
Util.write(vectorIndex, idx + 4, ptr, 4); Util.write(vectorIndex, idx + 4, ptr + SegmentIndexSize, 4);
} }
} }