Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -974,7 +974,7 @@ public DynamicObject initializeWithSizeAndValue(DynamicObject array, int size, O
@Cached("forValue(value)") ArrayStrategy strategy,
@Cached("createBinaryProfile()") ConditionProfile needsFill) {
final ArrayMirror store = strategy.newArray(size);
if (needsFill.profile(size > 0 && strategy.isDefaultValue(value))) {
if (needsFill.profile(!strategy.isDefaultValue(value))) {
for (int i = 0; i < size; i++) {
store.set(i, value);
}

0 comments on commit e4fe86d

Please sign in to comment.