Skip to content

Commit 9b4544a

Browse files
committed
allow promotion of indices in range constructor
1 parent 82ff5e7 commit 9b4544a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinConstructors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,7 @@ private Object callNativeGenericNewNode(PythonNativeClass self, Object[] varargs
14011401
@Builtin(name = RANGE, minNumOfPositionalArgs = 2, maxNumOfPositionalArgs = 4, constructsClass = PythonBuiltinClassType.PRange)
14021402
@GenerateNodeFactory
14031403
@SuppressWarnings("unused")
1404+
@TypeSystemReference(PythonArithmeticTypes.class)
14041405
public abstract static class RangeNode extends PythonBuiltinNode {
14051406

14061407
@Specialization(guards = "caseStop(start,step)")

0 commit comments

Comments
 (0)