Skip to content

Commit 502291e

Browse files
committed
Fix bug in BoolBuilder.
1 parent b25d801 commit 502291e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

std-bits/table/src/main/java/org/enso/table/data/column/builder/BoolBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public void append(Object o) {
3232
} else {
3333
throw new ValueTypeMismatchException(getType(), o);
3434
}
35+
size++;
3536
}
36-
size++;
3737
}
3838

3939
@Override

std-bits/table/src/main/java/org/enso/table/data/column/builder/InferredBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void append(Object o) {
5454

5555
if (currentBuilder == null) {
5656
if (o == null) {
57-
currentSize++;
57+
appendNulls(1);
5858
return;
5959
} else {
6060
initBuilderFor(o);

std-bits/table/src/main/java/org/enso/table/data/column/builder/LongBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ public void append(Object o) {
151151

152152
Long x = NumericConverter.tryConvertingToLong(o);
153153
if (x != null) {
154-
ensureSpaceToAppend();
155-
this.data[currentSize++] = x;
154+
appendLong(x);
156155
} else {
157156
throw new ValueTypeMismatchException(getType(), o);
158157
}

0 commit comments

Comments
 (0)