Skip to content

Commit 28d8659

Browse files
committed
correctly handle ArithmeticExceptions from intValueExact/longValueExact
1 parent 6d7083d commit 28d8659

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/PInt.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public int intValue() {
9292
return value.intValue();
9393
}
9494

95-
@TruffleBoundary
95+
@TruffleBoundary(transferToInterpreterOnException = false)
9696
public int intValueExact() {
9797
return value.intValueExact();
9898
}
@@ -102,7 +102,7 @@ public long longValue() {
102102
return value.longValue();
103103
}
104104

105-
@TruffleBoundary
105+
@TruffleBoundary(transferToInterpreterOnException = false)
106106
public long longValueExact() {
107107
return value.longValueExact();
108108
}

0 commit comments

Comments
 (0)