Skip to content

Commit 5bc0893

Browse files
committed
Fix: invalid usage of POL.asSizeWithState
1 parent 812e713 commit 5bc0893

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
@@ -2901,7 +2901,7 @@ protected static boolean isInt(Object times) {
29012901

29022902
private static int toIndex(VirtualFrame frame, Object times, PRaiseNode raiseNode, PythonObjectLibrary lib) {
29032903
if (lib.canBeIndex(times)) {
2904-
return lib.asSizeWithState(times, PArguments.getThreadState(frame));
2904+
return lib.asSizeWithFrame(times, PythonBuiltinClassType.OverflowError, frame);
29052905
}
29062906
throw raiseNode.raise(TypeError, ERROR_MSG, times);
29072907
}

0 commit comments

Comments
 (0)