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 dd17877 commit 69dbbe0Copy full SHA for 69dbbe0
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java
@@ -283,7 +283,7 @@ protected String bigToString(BigInteger x) {
283
String doL(long x,
284
@Cached ConditionProfile isMinLong) {
285
if (isMinLong.profile(x == Long.MIN_VALUE)) {
286
- return buildString(true, bigToString(PInt.longToBigInteger(x)));
+ return buildString(true, bigToString(PInt.longToBigInteger(x).abs()));
287
}
288
return buildString(x < 0, longToString(Math.abs(x)));
289
0 commit comments