Skip to content

Commit 360aa57

Browse files
committed
Fix: invalid arguments array index.
1 parent 43c2f3e commit 360aa57

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/call/special/CallVarargsMethodNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Object callTernary(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunct
143143
Object callQuaternary(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
144144
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
145145
@Cached("getQuaternary(func)") PythonQuaternaryBuiltinNode builtinNode) {
146-
return builtinNode.execute(frame, arguments[0], arguments[1], arguments[2], arguments[4]);
146+
return builtinNode.execute(frame, arguments[0], arguments[1], arguments[2], arguments[3]);
147147
}
148148

149149
@Specialization

0 commit comments

Comments
 (0)