File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ public String doD(double x) {
282
282
@ TruffleBoundary
283
283
public String doPI (PInt x ) {
284
284
BigInteger value = x .getValue ();
285
- return buildString (value .compareTo (BigInteger .ZERO ) == - 1 , value .abs ().toString (2 ));
285
+ return buildString (value .compareTo (BigInteger .ZERO ) < 0 , value .abs ().toString (2 ));
286
286
}
287
287
288
288
@ Specialization
@@ -336,7 +336,7 @@ public String doD(double x) {
336
336
@ TruffleBoundary
337
337
public String doPI (PInt x ) {
338
338
BigInteger value = x .getValue ();
339
- return buildString (value .compareTo (BigInteger .ZERO ) == - 1 , value .abs ().toString (8 ));
339
+ return buildString (value .compareTo (BigInteger .ZERO ) < 0 , value .abs ().toString (8 ));
340
340
}
341
341
342
342
@ Specialization
@@ -390,7 +390,7 @@ public String doD(double x) {
390
390
@ TruffleBoundary
391
391
public String doPI (PInt x ) {
392
392
BigInteger value = x .getValue ();
393
- return buildString (value .compareTo (BigInteger .ZERO ) == - 1 , value .abs ().toString (8 ));
393
+ return buildString (value .compareTo (BigInteger .ZERO ) < 0 , value .abs ().toString (8 ));
394
394
}
395
395
396
396
@ Specialization
You can’t perform that action at this time.
0 commit comments