Skip to content

Commit 88f3018

Browse files
committed
correct length in SequenceStorageNodes
1 parent 15cfe01 commit 88f3018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SequenceStorageNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ static NativeSequenceStorage doDouble(double[] arr, int length,
16401640
static NativeSequenceStorage doObject(Object[] arr, int length,
16411641
@Exclusive @Cached PCallCapiFunction callNode,
16421642
@Exclusive @Cached PythonToNativeNewRefNode toSulongNode) {
1643-
Object[] wrappedValues = new Object[arr.length];
1643+
Object[] wrappedValues = new Object[length];
16441644
for (int i = 0; i < wrappedValues.length; i++) {
16451645
wrappedValues[i] = toSulongNode.execute(arr[i]);
16461646
}

0 commit comments

Comments
 (0)