File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/complex Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 27
27
28
28
import com .oracle .graal .python .builtins .objects .object .PythonBuiltinObject ;
29
29
import com .oracle .graal .python .builtins .objects .type .PythonClass ;
30
- import com .oracle .truffle .api .CompilerAsserts ;
30
+ import com .oracle .truffle .api .CompilerDirectives . TruffleBoundary ;
31
31
32
32
public final class PComplex extends PythonBuiltinObject {
33
33
/* Prime multiplier used in string and various other hashes in CPython. */
@@ -89,8 +89,8 @@ public double getImag() {
89
89
}
90
90
91
91
@ Override
92
+ @ TruffleBoundary
92
93
public String toString () {
93
- CompilerAsserts .neverPartOfCompilation ();
94
94
if (Double .compare (real , 0.0 ) == 0 ) {
95
95
return toString (imag ) + "j" ;
96
96
} else {
You can’t perform that action at this time.
0 commit comments