Skip to content

Commit 0cd6b24

Browse files
committed
Fix: convert to native value in generic case.
1 parent 4070d1e commit 0cd6b24

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/cext/PySequenceArrayWrapperMR.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ long doBytesI32(PBytes bytes, long byteIdx) {
179179
@Specialization(guards = {"!isTuple(object)", "!isList(object)"})
180180
Object doGeneric(Object object, long idx,
181181
@Cached("create(__GETITEM__)") LookupAndCallBinaryNode getItemNode) {
182-
return getItemNode.executeObject(object, idx);
182+
return getToSulongNode().execute(getItemNode.executeObject(object, idx));
183183
}
184184

185185
protected static ListBuiltins.GetItemNode createListGetItem() {

0 commit comments

Comments
 (0)