fix the bug of vector index end ptr set

This commit is contained in:
lion 2022-07-16 12:14:31 +08:00
parent e638421ae2
commit 3434635509

View File

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