Skip to content

Commit c7e3352

Browse files
committed
Moved BigInteger.valueOf call outside TruffleBoundary
1 parent a8b05e8 commit c7e3352

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats/FloatBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ public static double compareDoubleToLong(double v, long w) {
10531053
if (w > -0x1000000000000L && w < 0x1000000000000L) { // w is at most 48 bits
10541054
return v - w;
10551055
} else {
1056-
return compareUsingBigDecimal(v, BigInteger.valueOf(w));
1056+
return compareUsingBigDecimal(v, PInt.longToBigInteger(w));
10571057
}
10581058
}
10591059

0 commit comments

Comments
 (0)