Skip to content

Commit 09ccb24

Browse files
author
chengyitian
committed
Merge remote-tracking branch 'origin/release130' into release130
2 parents a93d75a + 4ddce13 commit 09ccb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/data/BasicArrayVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void Append(Vector value) throws Exception{
340340
int indexCount = rowIndicesSize;
341341
int prev = indexCount == 0? 0 : rowIndices[indexCount - 1];
342342
if (rowIndicesSize + 1 > capacity){
343-
rowIndices = Arrays.copyOf(rowIndices, rowIndices.length * 2);
343+
rowIndices = Arrays.copyOf(rowIndices, Math.max(2, rowIndices.length * 2));
344344
capacity = rowIndices.length;
345345
}
346346
if (value.rows() != 0){

0 commit comments

Comments
 (0)