Skip to content

Commit 5e6b691

Browse files
committed
Slice step should default to None
1 parent e8563e6 commit 5e6b691

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/nodes/subscript/SliceLiteralNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private int castStop(VirtualFrame frame, Object o) {
104104
private int castStep(VirtualFrame frame, Object o) {
105105
if (castStepNode == null) {
106106
CompilerDirectives.transferToInterpreterAndInvalidate();
107-
castStepNode = insert(CastToSliceComponentNode.create(1, Integer.MAX_VALUE));
107+
castStepNode = insert(CastToSliceComponentNode.create(MISSING_INDEX, Integer.MAX_VALUE));
108108
}
109109
return castStepNode.execute(frame, o);
110110
}

0 commit comments

Comments
 (0)