Skip to content

Commit 001931a

Browse files
committed
Formatting
1 parent 8cce3b0 commit 001931a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/complex/ComplexBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@ boolean doComplex(PComplex left, PComplex right) {
567567
boolean doComplex(PComplex left, long right) {
568568
return left.getImag() != 0 || left.getReal() != right;
569569
}
570-
570+
571571
@Specialization
572572
boolean doComplex(PComplex left, PInt right) {
573573
return left.getImag() != 0 || left.getReal() != right.doubleValue();
574574
}
575-
575+
576576
@Specialization
577577
boolean doComplex(PComplex left, double right) {
578578
return left.getImag() != 0 || left.getReal() != right;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/complex/PComplex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public double getImag() {
9191
@Override
9292
@TruffleBoundary
9393
public String toString() {
94-
if (Double.compare(real, 0.0) == 0) {
95-
return Double.compare(imag, 0.0) >= 0 ? toString(imag) + "j" : String.format("-%sj", toString(-imag));
94+
if (Double.compare(real, 0.0) == 0) {
95+
return Double.compare(imag, 0.0) >= 0 ? toString(imag) + "j" : String.format("-%sj", toString(-imag));
9696
} else {
9797
String realString = toString(real);
9898
if (real == 0.0) {

0 commit comments

Comments
 (0)