Skip to content

Commit 4db46b3

Browse files
committed
Fixing arg length.
1 parent 110e8ee commit 4db46b3

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/PNodeWithContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public final PException raiseOSError(VirtualFrame frame, Object[] arg) {
151151
CompilerDirectives.transferToInterpreterAndInvalidate();
152152
callNode = insert(CallVarargsMethodNode.create());
153153
}
154-
Object[] args = PositionalArgumentsNode.prependArgument(getBuiltinPythonClass(PythonBuiltinClassType.OSError), arg, arg.length + 1);
154+
Object[] args = PositionalArgumentsNode.prependArgument(getBuiltinPythonClass(PythonBuiltinClassType.OSError), arg, arg.length);
155155
PBaseException error = (PBaseException) callNode.execute(frame, getBuiltinPythonClass(PythonBuiltinClassType.OSError), args, new PKeyword[]{});
156156
return raise(error);
157157
}

0 commit comments

Comments
 (0)