Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected int prepareWrite() {
// Please be thoughtful when changing the code.

final int writeIndex = vectorIndex.vectorIndex();
prepareWrite(writeIndex);
prepareWrite(writeIndex - 1);

// Track the last write location for zero-fill use next time around.

Expand All @@ -84,7 +84,7 @@ private void prepareWrite(int writeIndex) {

@Override
public void setValueCount(int valueCount) {
prepareWrite(valueCount);
prepareWrite(valueCount - 1);
mutator.setValueCount(valueCount);
}

Expand Down