Skip to content

Commit 2e9f455

Browse files
committed
Fixed int shortcut in argument clinic
1 parent d5a6547 commit 2e9f455

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/function/builtins/PythonTernaryClinicBuiltinNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected Object castWithNode(ArgumentClinicProvider clinic, VirtualFrame frame,
7979
public Object callWithInt(VirtualFrame frame, Object arg, int arg2, Object arg3) {
8080
ArgumentClinicProvider clinic = getArgumentClinic();
8181
if (clinic.acceptsInt(1)) {
82-
return executeWithInt(frame, arg, arg2, arg3);
82+
return executeWithInt(frame, cast(clinic, frame, 0, arg), arg2, cast(clinic, frame, 2, arg3));
8383
} else {
8484
return call(frame, arg, arg2, arg3);
8585
}

0 commit comments

Comments
 (0)