File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/interop Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 40
40
41
41
import com .oracle .graal .python .builtins .objects .floats .PFloat ;
42
42
import com .oracle .graal .python .builtins .objects .ints .PInt ;
43
+ import com .oracle .graal .python .builtins .objects .str .PString ;
43
44
import com .oracle .truffle .api .dsl .Fallback ;
44
45
import com .oracle .truffle .api .dsl .Specialization ;
45
46
import com .oracle .truffle .api .nodes .Node ;
@@ -52,7 +53,12 @@ public static PTypeUnboxNode create() {
52
53
public abstract Object execute (Object value );
53
54
54
55
@ Specialization
55
- Object access (PFloat obj ) {
56
+ String access (PString obj ) {
57
+ return obj .getValue ();
58
+ }
59
+
60
+ @ Specialization
61
+ double access (PFloat obj ) {
56
62
return obj .getValue ();
57
63
}
58
64
You can’t perform that action at this time.
0 commit comments