Skip to content

Commit 6c5bf18

Browse files
committed
Fix: incorrect arguments for error message format string.
1 parent 8d3d465 commit 6c5bf18

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/util/CastToJavaIntNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected int toIntInternal(PInt x) {
167167
return x.intValueExact();
168168
} catch (ArithmeticException e) {
169169
CompilerDirectives.transferToInterpreter();
170-
throw PRaiseNode.getUncached().raise(TypeError, "%s cannot be interpreted as int (type %p)", x);
170+
throw PRaiseNode.getUncached().raise(TypeError, "%s cannot be interpreted as int (type %p)", x, x);
171171
}
172172
}
173173
}

0 commit comments

Comments
 (0)