Skip to content

Commit 9532804

Browse files
timfelfangerer
authored andcommitted
fix check in hasArrayElements
1 parent 16295e9 commit 9532804

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/PythonAbstractObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public boolean hasArrayElements(
205205
@Shared("isSequenceNode") @Cached IsSequenceNode isSequenceNode,
206206
@Shared("isMapping") @Cached IsMappingNode isMapping,
207207
@Shared("isIterableNode") @Cached IsIterableNode isIterableNode) {
208-
return (isSequenceNode.execute(this) && !isMapping.execute(this)) || isIterableNode.execute(this);
208+
return (isSequenceNode.execute(this) || isIterableNode.execute(this)) && !isMapping.execute(this);
209209
}
210210

211211
@ExportMessage

0 commit comments

Comments
 (0)