We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7e4f3 commit a09e070Copy full SHA for a09e070
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/IntBuiltins.java
@@ -246,7 +246,7 @@ private Object makeInt(BigDecimal d) {
246
return factory().createInt(d.toBigIntegerExact());
247
} catch (ArithmeticException e) {
248
// has non-zero fractional part, which should not happen
249
- throw new IllegalStateException();
+ throw CompilerDirectives.shouldNotReachHere("non-integer produced after rounding an integer", e);
250
}
251
252
0 commit comments