We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382603a commit 4ddce13Copy full SHA for 4ddce13
src/com/xxdb/data/BasicArrayVector.java
@@ -340,7 +340,7 @@ public void Append(Vector value) throws Exception{
340
int indexCount = rowIndicesSize;
341
int prev = indexCount == 0? 0 : rowIndices[indexCount - 1];
342
if (rowIndicesSize + 1 > capacity){
343
- rowIndices = Arrays.copyOf(rowIndices, rowIndices.length * 2);
+ rowIndices = Arrays.copyOf(rowIndices, Math.max(2, rowIndices.length * 2));
344
capacity = rowIndices.length;
345
}
346
if (value.rows() != 0){
0 commit comments